[llvm-branch-commits] [llvm-branch] r82428 - /llvm/branches/release_26/lib/CodeGen/SimpleRegisterCoalescing.cpp
Tanya Lattner
tonic at nondot.org
Sun Sep 20 20:01:01 PDT 2009
Author: tbrethou
Date: Sun Sep 20 22:01:01 2009
New Revision: 82428
URL: http://llvm.org/viewvc/llvm-project?rev=82428&view=rev
Log:
Merge in fix for PR4910.
Modified:
llvm/branches/release_26/lib/CodeGen/SimpleRegisterCoalescing.cpp
Modified: llvm/branches/release_26/lib/CodeGen/SimpleRegisterCoalescing.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/release_26/lib/CodeGen/SimpleRegisterCoalescing.cpp?rev=82428&r1=82427&r2=82428&view=diff
==============================================================================
--- llvm/branches/release_26/lib/CodeGen/SimpleRegisterCoalescing.cpp (original)
+++ llvm/branches/release_26/lib/CodeGen/SimpleRegisterCoalescing.cpp Sun Sep 20 22:01:01 2009
@@ -527,14 +527,15 @@
if (!li_->hasInterval(*SR))
continue;
LiveInterval &sli = li_->getInterval(*SR);
+ unsigned RemoveStart = Start;
unsigned RemoveEnd = Start;
while (RemoveEnd != End) {
- LiveInterval::iterator LR = sli.FindLiveRangeContaining(Start);
+ LiveInterval::iterator LR = sli.FindLiveRangeContaining(RemoveStart);
if (LR == sli.end())
break;
RemoveEnd = (LR->end < End) ? LR->end : End;
- sli.removeRange(Start, RemoveEnd, true);
- Start = RemoveEnd;
+ sli.removeRange(RemoveStart, RemoveEnd, true);
+ RemoveStart = RemoveEnd;
}
}
}
More information about the llvm-branch-commits
mailing list