summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/CodeGen/SplitKit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SplitKit.cpp b/lib/CodeGen/SplitKit.cpp
index d875f18754..b0806a573f 100644
--- a/lib/CodeGen/SplitKit.cpp
+++ b/lib/CodeGen/SplitKit.cpp
@@ -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");