Tweak debug spew.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 18 Dec 2010 03:04:11 +0000 (03:04 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 18 Dec 2010 03:04:11 +0000 (03:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122132 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/RegAllocGreedy.cpp

index 50e45466603c9f6c71428f6acba2821a0ee3080f..9ba67d9c642f233df2d53babaf8f5701b6601e24 100644 (file)
@@ -308,13 +308,15 @@ unsigned RAGreedy::trySplit(LiveInterval &VirtReg, AllocationOrder &Order,
   // 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");
     }
   }