mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-25 00:29:20 +00:00
Also use shrinkToUses after AdjustCopiesBackFrom().
The 'last use' may not be in the same basic block, and we still want a correct live range. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131523 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9c77398d1c
commit
c6b9ebdd64
@ -272,7 +272,7 @@ bool SimpleRegisterCoalescing::AdjustCopiesBackFrom(const CoalescerPair &CP,
|
|||||||
// merge, find the last use and trim the live range. That will also add the
|
// merge, find the last use and trim the live range. That will also add the
|
||||||
// isKill marker.
|
// isKill marker.
|
||||||
if (ALR->end == CopyIdx)
|
if (ALR->end == CopyIdx)
|
||||||
TrimLiveIntervalToLastUse(CopyUseIdx, CopyMI->getParent(), IntA, ALR);
|
li_->shrinkToUses(&IntA);
|
||||||
|
|
||||||
++numExtends;
|
++numExtends;
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user