[llvm-commits] [llvm] r128450 - /llvm/trunk/lib/CodeGen/SplitKit.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Mon Mar 28 20:12:04 PDT 2011
Author: stoklund
Date: Mon Mar 28 22:12:04 2011
New Revision: 128450
URL: http://llvm.org/viewvc/llvm-project?rev=128450&view=rev
Log:
Handle the special case when all uses follow the last split point.
Modified:
llvm/trunk/lib/CodeGen/SplitKit.cpp
Modified: llvm/trunk/lib/CodeGen/SplitKit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SplitKit.cpp?rev=128450&r1=128449&r2=128450&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SplitKit.cpp (original)
+++ llvm/trunk/lib/CodeGen/SplitKit.cpp Mon Mar 28 22:12:04 2011
@@ -928,7 +928,8 @@
continue;
openIntv();
- SlotIndex SegStart = enterIntvBefore(BI.FirstUse);
+ SlotIndex SegStart = enterIntvBefore(std::min(BI.FirstUse,
+ BI.LastSplitPoint));
if (!BI.LiveOut || BI.LastUse < BI.LastSplitPoint) {
useIntv(SegStart, leaveIntvAfter(BI.LastUse));
} else {
More information about the llvm-commits
mailing list