summaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineLICM.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-01-23 21:01:11 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-01-23 21:01:11 +0000
commit39f66601938e88a4e287986fab58a0d5053f8f8e (patch)
treeeb7b23574e4d81da5553360b83c0557815aeeeee /lib/CodeGen/MachineLICM.cpp
parent3e08131185d5b3245065eb027900aed56b607970 (diff)
downloadllvm-39f66601938e88a4e287986fab58a0d5053f8f8e.tar.gz
llvm-39f66601938e88a4e287986fab58a0d5053f8f8e.tar.bz2
llvm-39f66601938e88a4e287986fab58a0d5053f8f8e.tar.xz
Simplify debug output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148723 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineLICM.cpp')
-rw-r--r--lib/CodeGen/MachineLICM.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/CodeGen/MachineLICM.cpp b/lib/CodeGen/MachineLICM.cpp
index 30c93f8452..b9028ec681 100644
--- a/lib/CodeGen/MachineLICM.cpp
+++ b/lib/CodeGen/MachineLICM.cpp
@@ -582,16 +582,8 @@ void MachineLICM::HoistPostRA(MachineInstr *MI, unsigned Def) {
// Now move the instructions to the predecessor, inserting it before any
// terminator instructions.
- DEBUG({
- dbgs() << "Hoisting " << *MI;
- if (Preheader->getBasicBlock())
- dbgs() << " to MachineBasicBlock "
- << Preheader->getName();
- if (MI->getParent()->getBasicBlock())
- dbgs() << " from MachineBasicBlock "
- << MI->getParent()->getName();
- dbgs() << "\n";
- });
+ DEBUG(dbgs() << "Hoisting to BB#" << Preheader->getNumber() << " from BB#"
+ << MI->getParent()->getNumber() << ": " << *MI);
// Splice the instruction to the preheader.
MachineBasicBlock *MBB = MI->getParent();