diff options
author | Dan Gohman <gohman@apple.com> | 2008-11-12 17:15:19 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-11-12 17:15:19 +0000 |
commit | 0df957e09d898cabad8c4c0756e06c349a44e133 (patch) | |
tree | 95dd37b4f1313d270f30af5ed81c845ea7a0235b /llvm/lib/CodeGen/TwoAddressInstructionPass.cpp | |
parent | 5efcb61337a483970d2dd278b42e223500e088c1 (diff) | |
download | bcm5719-llvm-0df957e09d898cabad8c4c0756e06c349a44e133.tar.gz bcm5719-llvm-0df957e09d898cabad8c4c0756e06c349a44e133.zip |
Do the LiveVariables update before printing the instruction in
the debug output, so that the updated liveness flags are
reflected in the debug output.
llvm-svn: 59147
Diffstat (limited to 'llvm/lib/CodeGen/TwoAddressInstructionPass.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TwoAddressInstructionPass.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp index 7d9e44ab204..52a54eb5bd8 100644 --- a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp +++ b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp @@ -419,7 +419,6 @@ bool TwoAddressInstructionPass::runOnMachineFunction(MachineFunction &MF) { } 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 @@ bool TwoAddressInstructionPass::runOnMachineFunction(MachineFunction &MF) { 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) { |