[llvm] r195588 - Output a bit more information in the debug printing for MBP. This was
Chandler Carruth
chandlerc at gmail.com
Sun Nov 24 16:43:42 PST 2013
Author: chandlerc
Date: Sun Nov 24 18:43:41 2013
New Revision: 195588
URL: http://llvm.org/viewvc/llvm-project?rev=195588&view=rev
Log:
Output a bit more information in the debug printing for MBP. This was
useful when analyzing parts of zlib's behavior here.
Modified:
llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp
Modified: llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp?rev=195588&r1=195587&r2=195588&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp Sun Nov 24 18:43:41 2013
@@ -367,7 +367,8 @@ MachineBasicBlock *MachineBlockPlacement
// any CFG constraints.
if (SuccChain.LoopPredecessors != 0) {
if (SuccProb < HotProb) {
- DEBUG(dbgs() << " " << getBlockName(*SI) << " -> CFG conflict\n");
+ DEBUG(dbgs() << " " << getBlockName(*SI) << " -> " << SuccProb
+ << " (prob) (CFG conflict)\n");
continue;
}
@@ -390,8 +391,8 @@ MachineBasicBlock *MachineBlockPlacement
}
}
if (BadCFGConflict) {
- DEBUG(dbgs() << " " << getBlockName(*SI)
- << " -> non-cold CFG conflict\n");
+ DEBUG(dbgs() << " " << getBlockName(*SI) << " -> " << SuccProb
+ << " (prob) (non-cold CFG conflict)\n");
continue;
}
}
More information about the llvm-commits
mailing list