summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocGreedy.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-12-18 03:04:11 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-12-18 03:04:11 +0000
commit2a9f194b002d2160ceb395536b9d431b8e67027d (patch)
treeca48229cb20df71a7c2eab7ef79c263d36da650e /llvm/lib/CodeGen/RegAllocGreedy.cpp
parent429bb1e2ccf1924358a8332376d38c018d10bca0 (diff)
downloadbcm5719-llvm-2a9f194b002d2160ceb395536b9d431b8e67027d.tar.gz
bcm5719-llvm-2a9f194b002d2160ceb395536b9d431b8e67027d.zip
Tweak debug spew.
llvm-svn: 122132
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocGreedy.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocGreedy.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/RegAllocGreedy.cpp b/llvm/lib/CodeGen/RegAllocGreedy.cpp
index 50e45466603..9ba67d9c642 100644
--- a/llvm/lib/CodeGen/RegAllocGreedy.cpp
+++ b/llvm/lib/CodeGen/RegAllocGreedy.cpp
@@ -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");
}
}
OpenPOWER on IntegriCloud