summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
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
commit9082353e3bca4c4520b02773bfb746749b452d4b (patch)
treec6aecea8465ab7b60f9f791c5986514c5d73114a /llvm/lib/CodeGen
parentba52365ae3e01cd94f621aaf5460bd48090e6c0f (diff)
downloadbcm5719-llvm-9082353e3bca4c4520b02773bfb746749b452d4b.tar.gz
bcm5719-llvm-9082353e3bca4c4520b02773bfb746749b452d4b.zip
Simplify debug output.
llvm-svn: 148723
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/MachineLICM.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/llvm/lib/CodeGen/MachineLICM.cpp b/llvm/lib/CodeGen/MachineLICM.cpp
index 30c93f84523..b9028ec6818 100644
--- a/llvm/lib/CodeGen/MachineLICM.cpp
+++ b/llvm/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();
OpenPOWER on IntegriCloud