diff options
author | Bob Wilson <bob.wilson@apple.com> | 2010-05-03 21:38:11 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2010-05-03 21:38:11 +0000 |
commit | ad98f795d0dba3db721139a8a74a98acdce0ff60 (patch) | |
tree | 0b2ac1bf9af69f926469f7e8445526ec901e428d | |
parent | a75586f37e2409aebce8e330832eec05487aa783 (diff) |
Print basic block numbers in live interval debug output. Since the rest of the
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
-rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index 7a2feeacab..26a7190110 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -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(), |