diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-08-14 01:56:58 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-08-14 01:56:58 +0000 |
commit | 2d88a7bdd84044a39611c50a8ea01d8e3c4040e5 (patch) | |
tree | 74c8fb26b5dc8e94685754bf0065ac80166898e0 /lib/CodeGen/LiveInterval.cpp | |
parent | 59e0c06f3d8c4d94f27173d700ca09d6e4f03244 (diff) | |
download | external_llvm-2d88a7bdd84044a39611c50a8ea01d8e3c4040e5.tar.gz external_llvm-2d88a7bdd84044a39611c50a8ea01d8e3c4040e5.tar.bz2 external_llvm-2d88a7bdd84044a39611c50a8ea01d8e3c4040e5.zip |
Kill info update bugs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41064 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveInterval.cpp')
-rw-r--r-- | lib/CodeGen/LiveInterval.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveInterval.cpp b/lib/CodeGen/LiveInterval.cpp index d60c3b1b63..9697d43bb4 100644 --- a/lib/CodeGen/LiveInterval.cpp +++ b/lib/CodeGen/LiveInterval.cpp @@ -109,6 +109,7 @@ bool LiveInterval::overlapsFrom(const LiveInterval& other, void LiveInterval::extendIntervalEndTo(Ranges::iterator I, unsigned NewEnd) { assert(I != ranges.end() && "Not a valid interval!"); unsigned ValId = I->ValId; + unsigned OldEnd = I->end; // Search for the first interval that we can't merge with. Ranges::iterator MergeTo = next(I); @@ -123,7 +124,7 @@ void LiveInterval::extendIntervalEndTo(Ranges::iterator I, unsigned NewEnd) { ranges.erase(next(I), MergeTo); // Update kill info. - removeKillForValNum(ValId, I->start, I->end-1); + removeKillForValNum(ValId, OldEnd, I->end-1); // If the newly formed range now touches the range after it and if they have // the same value number, merge the two ranges into one range. |