diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-05-18 04:51:12 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-05-18 04:51:12 +0000 |
commit | c6b9ebdd6400c5ade1b5b211252cd251b6ef07ae (patch) | |
tree | 8073b5bcd43d356f3845c3bb046fa0fdbe0a9074 | |
parent | 9c77398d1c89f615735d304cd7eda3c3e9b1504f (diff) | |
download | llvm-c6b9ebdd6400c5ade1b5b211252cd251b6ef07ae.tar.gz llvm-c6b9ebdd6400c5ade1b5b211252cd251b6ef07ae.tar.bz2 llvm-c6b9ebdd6400c5ade1b5b211252cd251b6ef07ae.tar.xz |
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
-rw-r--r-- | lib/CodeGen/SimpleRegisterCoalescing.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SimpleRegisterCoalescing.cpp b/lib/CodeGen/SimpleRegisterCoalescing.cpp index f55dc7dab5..7aa39c5160 100644 --- a/lib/CodeGen/SimpleRegisterCoalescing.cpp +++ b/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; |