mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-10 02:25:47 +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:
@@ -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
|
||||
// isKill marker.
|
||||
if (ALR->end == CopyIdx)
|
||||
TrimLiveIntervalToLastUse(CopyUseIdx, CopyMI->getParent(), IntA, ALR);
|
||||
li_->shrinkToUses(&IntA);
|
||||
|
||||
++numExtends;
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user