mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-09 10:31:14 +00:00
If the liveinterval of the source instruction has been extended, remove the IsKill marker.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34594 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bc025fbb64
commit
16191f0333
@ -828,6 +828,12 @@ bool LiveIntervals::AdjustCopiesBackFrom(LiveInterval &IntA, LiveInterval &IntB,
|
||||
IntB.MergeValueNumberInto(BValNo, ValLR->ValId);
|
||||
DOUT << " result = "; IntB.print(DOUT, mri_);
|
||||
DOUT << "\n";
|
||||
|
||||
// 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();
|
||||
|
||||
// Finally, delete the copy instruction.
|
||||
RemoveMachineInstrFromMaps(CopyMI);
|
||||
|
Loading…
x
Reference in New Issue
Block a user