mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 05:25:47 +00:00
Avoid calling removeVirtualRegisterKilled which iterates over the operands
to find the kill, since we already have the operand. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80736 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1032,7 +1032,8 @@ bool TwoAddressInstructionPass::runOnMachineFunction(MachineFunction &MF) {
|
|||||||
if (KillMO) {
|
if (KillMO) {
|
||||||
if (!FirstKeptMO) {
|
if (!FirstKeptMO) {
|
||||||
// All uses of regB are being replaced; move the kill to prevMI.
|
// All uses of regB are being replaced; move the kill to prevMI.
|
||||||
if (LV && LV->removeVirtualRegisterKilled(regB, mi))
|
KillMO->setIsKill(false);
|
||||||
|
if (LV && LV->getVarInfo(regB).removeKill(mi))
|
||||||
LV->addVirtualRegisterKilled(regB, prevMI);
|
LV->addVirtualRegisterKilled(regB, prevMI);
|
||||||
} else {
|
} else {
|
||||||
if (!KillMOKept) {
|
if (!KillMOKept) {
|
||||||
|
Reference in New Issue
Block a user