summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveInterval.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-08-14 01:56:58 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-08-14 01:56:58 +0000
commit74c69f7588ba16b4d20837e34e492316d6163ebe (patch)
treeda6cd4070156f8a30c8ea93808c7d8a5df2b7d34 /llvm/lib/CodeGen/LiveInterval.cpp
parentdbe8497d4582de08d6e35789d3086274f96498c7 (diff)
downloadbcm5719-llvm-74c69f7588ba16b4d20837e34e492316d6163ebe.tar.gz
bcm5719-llvm-74c69f7588ba16b4d20837e34e492316d6163ebe.zip
Kill info update bugs.
llvm-svn: 41064
Diffstat (limited to 'llvm/lib/CodeGen/LiveInterval.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveInterval.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveInterval.cpp b/llvm/lib/CodeGen/LiveInterval.cpp
index d60c3b1b63f..9697d43bb4d 100644
--- a/llvm/lib/CodeGen/LiveInterval.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud