[llvm-commits] [llvm] r102960 - /llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
Bob Wilson
bob.wilson at apple.com
Mon May 3 14:38:11 PDT 2010
Author: bwilson
Date: Mon May 3 16:38:11 2010
New Revision: 102960
URL: http://llvm.org/viewvc/llvm-project?rev=102960&view=rev
Log:
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.
Modified:
llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
Modified: llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp?rev=102960&r1=102959&r2=102960&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp Mon May 3 16:38:11 2010
@@ -665,7 +665,8 @@
// 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(),
More information about the llvm-commits
mailing list