diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-07-27 23:58:38 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-07-27 23:58:38 +0000 |
commit | 08f6ef6a7807250d84446661b7a6ec4afa762099 (patch) | |
tree | d909f9ba592f48965801427b4a6dbd162b77c65f /lib/CodeGen/EarlyIfConversion.cpp | |
parent | 0271a5fa29f73150fad891ca4c43a0a89a64b3bf (diff) | |
download | external_llvm-08f6ef6a7807250d84446661b7a6ec4afa762099.zip external_llvm-08f6ef6a7807250d84446661b7a6ec4afa762099.tar.gz external_llvm-08f6ef6a7807250d84446661b7a6ec4afa762099.tar.bz2 |
Add more debug output to MachineTraceMetrics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160905 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/EarlyIfConversion.cpp')
-rw-r--r-- | lib/CodeGen/EarlyIfConversion.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/CodeGen/EarlyIfConversion.cpp b/lib/CodeGen/EarlyIfConversion.cpp index cfe3e9d..a19e9ad 100644 --- a/lib/CodeGen/EarlyIfConversion.cpp +++ b/lib/CodeGen/EarlyIfConversion.cpp @@ -590,6 +590,7 @@ void EarlyIfConverter::invalidateTraces() { Traces->invalidate(IfConv.Tail); Traces->invalidate(IfConv.TBB); Traces->invalidate(IfConv.FBB); + DEBUG(if (MinInstr) MinInstr->print(dbgs())); } /// Apply cost model and heuristics to the if-conversion in IfConv. @@ -598,7 +599,10 @@ void EarlyIfConverter::invalidateTraces() { bool EarlyIfConverter::shouldConvertIf() { if (!MinInstr) MinInstr = Traces->getEnsemble(MachineTraceMetrics::TS_MinInstrCount); - DEBUG(dbgs() << MinInstr->getTrace(IfConv.Head)); + DEBUG({ + dbgs() << MinInstr->getTrace(IfConv.Head); + MinInstr->print(dbgs()); + }); return true; } |