mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
Move use of LV inside condition that guards for null LV.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80731 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6b382d5e5b
commit
c08f5fe882
@ -865,12 +865,12 @@ bool TwoAddressInstructionPass::runOnMachineFunction(MachineFunction &MF) {
|
||||
LV->addVirtualRegisterKilled(Kill, NewKill);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// We're really going to nuke the old inst. If regB was marked
|
||||
// as a kill we need to update its Kills list.
|
||||
if (mi->getOperand(si).isKill())
|
||||
LV->removeVirtualRegisterKilled(regB, mi);
|
||||
// We're really going to nuke the old inst. If regB was marked
|
||||
// as a kill we need to update its Kills list.
|
||||
if (mi->getOperand(si).isKill())
|
||||
LV->removeVirtualRegisterKilled(regB, mi);
|
||||
}
|
||||
|
||||
mbbi->erase(mi); // Nuke the old inst.
|
||||
mi = nmi;
|
||||
|
Loading…
Reference in New Issue
Block a user