Print basic block numbers in live interval debug output. Since the rest of the
authorBob Wilson <bob.wilson@apple.com>
Mon, 3 May 2010 21:38:11 +0000 (21:38 +0000)
committerBob Wilson <bob.wilson@apple.com>
Mon, 3 May 2010 21:38:11 +0000 (21:38 +0000)
debug output is showing machine instructions, the IR-level basic block names
aren't very meaningful, and because multiple machine basic blocks may be
derived from one IR-level BB, they're also not unique.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102960 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/LiveIntervalAnalysis.cpp

index 7a2feeacabc26e35ac8829d6570926f91cae3080..26a7190110f947a4f173bd9e61c81f4eeebb5a8b 100644 (file)
@@ -665,7 +665,8 @@ void LiveIntervals::computeIntervals() {
 
     // Track the index of the current machine instr.
     SlotIndex MIIndex = getMBBStartIdx(MBB);
-    DEBUG(dbgs() << MBB->getName() << ":\n");
+    DEBUG(dbgs() << "BB#" << MBB->getNumber()
+          << ":\t\t# derived from " << MBB->getName() << "\n");
 
     // Create intervals for live-ins to this BB first.
     for (MachineBasicBlock::livein_iterator LI = MBB->livein_begin(),