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 | 0563369755667638f9b9606ca320f579725ea11c (patch) | |
| tree | 51043bc9bf67ea56df6f21337980252d303f7f52 /llvm/lib/CodeGen/EarlyIfConversion.cpp | |
| parent | 1152202cc2f3d69411d764a25d9573d94f4263ba (diff) | |
| download | bcm5719-llvm-0563369755667638f9b9606ca320f579725ea11c.tar.gz bcm5719-llvm-0563369755667638f9b9606ca320f579725ea11c.zip | |
Add more debug output to MachineTraceMetrics.
llvm-svn: 160905
Diffstat (limited to 'llvm/lib/CodeGen/EarlyIfConversion.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/EarlyIfConversion.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/EarlyIfConversion.cpp b/llvm/lib/CodeGen/EarlyIfConversion.cpp index cfe3e9d7e1e..a19e9ad66f1 100644 --- a/llvm/lib/CodeGen/EarlyIfConversion.cpp +++ b/llvm/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; } |

