mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 20:23:59 +00:00
Do the LiveVariables update before printing the instruction in
the debug output, so that the updated liveness flags are reflected in the debug output. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59147 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -419,7 +419,6 @@ bool TwoAddressInstructionPass::runOnMachineFunction(MachineFunction &MF) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
MachineBasicBlock::iterator prevMi = prior(mi);
|
MachineBasicBlock::iterator prevMi = prior(mi);
|
||||||
DOUT << "\t\tprepend:\t"; DEBUG(prevMi->print(*cerr.stream(), &TM));
|
|
||||||
|
|
||||||
// Update live variables for regB.
|
// Update live variables for regB.
|
||||||
if (LV) {
|
if (LV) {
|
||||||
@ -435,6 +434,8 @@ bool TwoAddressInstructionPass::runOnMachineFunction(MachineFunction &MF) {
|
|||||||
LV->addVirtualRegisterDead(regB, prevMi);
|
LV->addVirtualRegisterDead(regB, prevMi);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DOUT << "\t\tprepend:\t"; DEBUG(prevMi->print(*cerr.stream(), &TM));
|
||||||
|
|
||||||
// Replace all occurences of regB with regA.
|
// Replace all occurences of regB with regA.
|
||||||
for (unsigned i = 0, e = mi->getNumOperands(); i != e; ++i) {
|
for (unsigned i = 0, e = mi->getNumOperands(); i != e; ++i) {
|
||||||
if (mi->getOperand(i).isReg() &&
|
if (mi->getOperand(i).isReg() &&
|
||||||
|
Reference in New Issue
Block a user