mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 21:29:41 +00:00
Fix an obvious mistake: don't change the operands until all of them have been
checked and it is safe to proceed with the changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105304 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b242563741
commit
b2c2a972b0
@ -1200,8 +1200,6 @@ TwoAddressInstructionPass::CoalesceExtSubRegs(SmallVector<unsigned,4> &Srcs,
|
|||||||
Proceed = false;
|
Proceed = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
MO.setReg(DstReg);
|
|
||||||
MO.setSubReg(NewSubIdx);
|
|
||||||
}
|
}
|
||||||
if (Proceed)
|
if (Proceed)
|
||||||
for (MachineRegisterInfo::reg_iterator RI = MRI->reg_begin(SrcReg),
|
for (MachineRegisterInfo::reg_iterator RI = MRI->reg_begin(SrcReg),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user