forked from OSchip/llvm-project
Also use shrinkToUses after AdjustCopiesBackFrom().
The 'last use' may not be in the same basic block, and we still want a correct live range. llvm-svn: 131523
This commit is contained in:
parent
384041d0dc
commit
f3dc225972
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue