He said *before* the last split point.

This should unbreak the build-self-4-mingw32 tester. I have a very
complicated test case that I will try to clean up.

llvm-svn: 135329
This commit is contained in:
Jakob Stoklund Olesen 2011-07-16 00:13:30 +00:00
parent b09652e74d
commit 25cece01c9

View 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");