diff options
author | Dan Gohman <gohman@apple.com> | 2009-11-11 18:23:17 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-11-11 18:23:17 +0000 |
commit | a127edceae2a0097133e9f032e759f9d15f92b7e (patch) | |
tree | d3aec291483ead01653aa2061406bb8952fd3714 /lib/CodeGen/BranchFolding.cpp | |
parent | d194498d2669e28cd8e85b0ceb7c69a7ec66da13 (diff) |
Prefix MBB numbers with "BB#" in debug output to make it clear what
the numbers mean.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86854 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/BranchFolding.cpp')
-rw-r--r-- | lib/CodeGen/BranchFolding.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/BranchFolding.cpp b/lib/CodeGen/BranchFolding.cpp index ed8b812c28..c3b2b80787 100644 --- a/lib/CodeGen/BranchFolding.cpp +++ b/lib/CodeGen/BranchFolding.cpp @@ -562,7 +562,7 @@ unsigned BranchFolder::CreateCommonTailOnlyBlock(MachineBasicBlock *&PredBB, MachineBasicBlock::iterator BBI = SameTails[commonTailIndex].second; MachineBasicBlock *MBB = SameTails[commonTailIndex].first->second; - DEBUG(errs() << "\nSplitting " << MBB->getNumber() << ", size " + DEBUG(errs() << "\nSplitting BB#" << MBB->getNumber() << ", size " << maxCommonTailLength); MachineBasicBlock *newMBB = SplitMBBAt(*MBB, BBI); @@ -639,11 +639,11 @@ bool BranchFolder::TryMergeBlocks(MachineBasicBlock *SuccBB, MachineBasicBlock *MBB = SameTails[commonTailIndex].first->second; // MBB is common tail. Adjust all other BB's to jump to this one. // Traversal must be forwards so erases work. - DEBUG(errs() << "\nUsing common tail " << MBB->getNumber() << " for "); + DEBUG(errs() << "\nUsing common tail BB#" << MBB->getNumber() << " for "); for (unsigned int i=0; i<SameTails.size(); ++i) { if (commonTailIndex==i) continue; - DEBUG(errs() << SameTails[i].first->second->getNumber() << ","); + DEBUG(errs() << "BB#" << SameTails[i].first->second->getNumber() << ", "); // Hack the end off BB i, making it jump to BB commonTailIndex instead. ReplaceTailWithBranchTo(SameTails[i].second, MBB); // BB i is no longer a predecessor of SuccBB; remove it from the worklist. |