[llvm-commits] [llvm] r148723 - /llvm/trunk/lib/CodeGen/MachineLICM.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Mon Jan 23 13:01:12 PST 2012
Author: stoklund
Date: Mon Jan 23 15:01:11 2012
New Revision: 148723
URL: http://llvm.org/viewvc/llvm-project?rev=148723&view=rev
Log:
Simplify debug output.
Modified:
llvm/trunk/lib/CodeGen/MachineLICM.cpp
Modified: llvm/trunk/lib/CodeGen/MachineLICM.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineLICM.cpp?rev=148723&r1=148722&r2=148723&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineLICM.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineLICM.cpp Mon Jan 23 15:01:11 2012
@@ -582,16 +582,8 @@
// 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();
More information about the llvm-commits
mailing list