[llvm-commits] [llvm] r122132 - /llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Fri Dec 17 19:04:11 PST 2010
Author: stoklund
Date: Fri Dec 17 21:04:11 2010
New Revision: 122132
URL: http://llvm.org/viewvc/llvm-project?rev=122132&view=rev
Log:
Tweak debug spew.
Modified:
llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp
Modified: llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp?rev=122132&r1=122131&r2=122132&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegAllocGreedy.cpp Fri Dec 17 21:04:11 2010
@@ -308,13 +308,15 @@
// allocation order.
MachineLoopRange *Loop = 0;
for (unsigned i = 0, e = SplitLoops.size(); i != e; ++i) {
+ DEBUG(dbgs() << " Checking " << *SplitLoops[i]);
if (unsigned PhysReg = findInterferenceFreeReg(SplitLoops[i],
VirtReg, Order)) {
(void)PhysReg;
Loop = SplitLoops[i];
- DEBUG(dbgs() << " " << TRI->getName(PhysReg)
- << " has no interferences in " << *Loop << '\n');
+ DEBUG(dbgs() << ": Use %" << TRI->getName(PhysReg) << '\n');
break;
+ } else {
+ DEBUG(dbgs() << ": Interference.\n");
}
}
More information about the llvm-commits
mailing list