Handle the special case when all uses follow the last split point.

llvm-svn: 128450
diff --git a/llvm/lib/CodeGen/SplitKit.cpp b/llvm/lib/CodeGen/SplitKit.cpp
index a9ad731..b89ff0c 100644
--- a/llvm/lib/CodeGen/SplitKit.cpp
+++ b/llvm/lib/CodeGen/SplitKit.cpp
@@ -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 {