Add more debug output to MachineTraceMetrics.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160905 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jakob Stoklund Olesen
2012-07-27 23:58:38 +00:00
parent 0271a5fa29
commit 08f6ef6a78
3 changed files with 48 additions and 3 deletions
+5 -1
View File
@@ -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;
}