mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-24 13:18:17 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user