mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Fix for PR1266. Don't mark a two address operand IsKill.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35365 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -854,9 +854,9 @@ bool LiveIntervals::AdjustCopiesBackFrom(LiveInterval &IntA, LiveInterval &IntB,
|
||||
|
||||
// If the source instruction was killing the source register before the
|
||||
// merge, unset the isKill marker given the live range has been extended.
|
||||
MachineOperand *MOK = ValLREndInst->findRegisterUseOperand(IntB.reg, true);
|
||||
if (MOK)
|
||||
MOK->unsetIsKill();
|
||||
int UIdx = ValLREndInst->findRegisterUseOperand(IntB.reg, true);
|
||||
if (UIdx != -1)
|
||||
ValLREndInst->getOperand(UIdx).unsetIsKill();
|
||||
|
||||
// Finally, delete the copy instruction.
|
||||
RemoveMachineInstrFromMaps(CopyMI);
|
||||
|
Reference in New Issue
Block a user