He said *before* the last split point.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 16 Jul 2011 00:13:30 +0000 (00:13 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 16 Jul 2011 00:13:30 +0000 (00:13 +0000)
This should unbreak the build-self-4-mingw32 tester. I have a very
complicated test case that I will try to clean up.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135329 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SplitKit.cpp

index d875f18754eef93710b79bc13790e2da95a4df41..b0806a573fcb03e48839e8f82062651cc7727e9e 100644 (file)
@@ -1280,7 +1280,7 @@ void SplitEditor::splitRegInBlock(const SplitAnalysis::BlockInfo &BI,
     } else {
       DEBUG(dbgs() << ", spill before last split point.\n");
       selectIntv(IntvIn);
-      SlotIndex Idx = leaveIntvAfter(LSP);
+      SlotIndex Idx = leaveIntvBefore(LSP);
       overlapIntv(Idx, BI.LastUse);
       useIntv(Start, Idx);
       assert((!LeaveBefore || Idx <= LeaveBefore) && "Interference");