[llvm-commits] [llvm] r59147 - /llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp
Dan Gohman
gohman at apple.com
Wed Nov 12 09:15:30 PST 2008
Author: djg
Date: Wed Nov 12 11:15:19 2008
New Revision: 59147
URL: http://llvm.org/viewvc/llvm-project?rev=59147&view=rev
Log:
Do the LiveVariables update before printing the instruction in
the debug output, so that the updated liveness flags are
reflected in the debug output.
Modified:
llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp
Modified: llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp?rev=59147&r1=59146&r2=59147&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp (original)
+++ llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp Wed Nov 12 11:15:19 2008
@@ -419,7 +419,6 @@
}
MachineBasicBlock::iterator prevMi = prior(mi);
- DOUT << "\t\tprepend:\t"; DEBUG(prevMi->print(*cerr.stream(), &TM));
// Update live variables for regB.
if (LV) {
@@ -434,6 +433,8 @@
if (LV->removeVirtualRegisterDead(regB, mi))
LV->addVirtualRegisterDead(regB, prevMi);
}
+
+ DOUT << "\t\tprepend:\t"; DEBUG(prevMi->print(*cerr.stream(), &TM));
// Replace all occurences of regB with regA.
for (unsigned i = 0, e = mi->getNumOperands(); i != e; ++i) {
More information about the llvm-commits
mailing list