[llvm-commits] [llvm] r41043 - /llvm/trunk/lib/CodeGen/LiveInterval.cpp
Evan Cheng
evan.cheng at apple.com
Mon Aug 13 00:12:24 PDT 2007
Author: evancheng
Date: Mon Aug 13 02:12:23 2007
New Revision: 41043
URL: http://llvm.org/viewvc/llvm-project?rev=41043&view=rev
Log:
Kill info update bugs.
Modified:
llvm/trunk/lib/CodeGen/LiveInterval.cpp
Modified: llvm/trunk/lib/CodeGen/LiveInterval.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveInterval.cpp?rev=41043&r1=41042&r2=41043&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveInterval.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveInterval.cpp Mon Aug 13 02:12:23 2007
@@ -232,7 +232,7 @@
// 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 @@
// 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 @@
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 @@
// 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;
More information about the llvm-commits
mailing list