diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-08-13 07:12:23 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-08-13 07:12:23 +0000 |
commit | 5ca98c657db0ffa4e6011dc9be3c03ebd811bc50 (patch) | |
tree | 34c90e3049e40b5714e618480d846a9298d34b0e /llvm/lib/CodeGen | |
parent | ab13178928b0ecc024baf9967b7f20986e5c0ec2 (diff) | |
download | bcm5719-llvm-5ca98c657db0ffa4e6011dc9be3c03ebd811bc50.tar.gz bcm5719-llvm-5ca98c657db0ffa4e6011dc9be3c03ebd811bc50.zip |
Kill info update bugs.
llvm-svn: 41043
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/LiveInterval.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/LiveInterval.cpp b/llvm/lib/CodeGen/LiveInterval.cpp index 2c22976559d..d60c3b1b63f 100644 --- a/llvm/lib/CodeGen/LiveInterval.cpp +++ b/llvm/lib/CodeGen/LiveInterval.cpp @@ -232,7 +232,7 @@ void LiveInterval::removeRange(unsigned Start, unsigned End) { // If the span we are removing is at the start of the LiveRange, adjust it. if (I->start == Start) { if (I->end == End) { - removeKillForValNum(I->ValId, End); + removeKillForValNum(I->ValId, Start, End); ranges.erase(I); // Removed the whole LiveRange. } else I->start = End; @@ -242,7 +242,7 @@ void LiveInterval::removeRange(unsigned Start, unsigned End) { // Otherwise if the span we are removing is at the end of the LiveRange, // adjust the other way. if (I->end == End) { - replaceKillForValNum(I->ValId, End, Start); + removeKillForValNum(I->ValId, Start, End); I->end = Start; return; } @@ -438,8 +438,6 @@ void LiveInterval::MergeValueNumberInto(unsigned V1, unsigned V2) { if (LR != begin()) { iterator Prev = LR-1; if (Prev->ValId == V2 && Prev->end == LR->start) { - bool Replaced = replaceKillForValNum(V2, Prev->end, LR->end); - assert(Replaced); Prev->end = LR->end; // Erase this live-range. @@ -458,7 +456,6 @@ void LiveInterval::MergeValueNumberInto(unsigned V1, unsigned V2) { // of the loop. if (I != end()) { if (I->start == LR->end && I->ValId == V2) { - removeKillForValNum(V2, LR->end); LR->end = I->end; ranges.erase(I); I = LR+1; |