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:
Jakob Stoklund Olesen 2011-05-18 04:51:12 +00:00
parent 384041d0dc
commit f3dc225972
1 changed files with 1 additions and 1 deletions

View File

@ -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;