summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-05-18 04:51:12 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-05-18 04:51:12 +0000
commitf3dc225972d86ab5f7393cb3a68fdc425a6a3484 (patch)
treede85a02dbcce04a5a16df78fed2e8c5b5b152d63 /llvm/lib
parent384041d0dcb1cfdef8486ab135a22642f13dae41 (diff)
downloadbcm5719-llvm-f3dc225972d86ab5f7393cb3a68fdc425a6a3484.tar.gz
bcm5719-llvm-f3dc225972d86ab5f7393cb3a68fdc425a6a3484.zip
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
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
index f55dc7dab57..7aa39c5160a 100644
--- a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
+++ b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
@@ -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;
OpenPOWER on IntegriCloud