summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SplitKit.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-02-04 19:33:11 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-02-04 19:33:11 +0000
commit096bd8837fd1e90c10db05af2614c962946a7a8a (patch)
treef45913dd532527603738db9d9c8c3cc0f27bc961 /llvm/lib/CodeGen/SplitKit.cpp
parentfefe6ebc73589952256d62a46e2e2136c022dc19 (diff)
downloadbcm5719-llvm-096bd8837fd1e90c10db05af2614c962946a7a8a.tar.gz
bcm5719-llvm-096bd8837fd1e90c10db05af2614c962946a7a8a.zip
Add LiveIntervals::getLastSplitPoint().
A live range cannot be split everywhere in a basic block. A split must go before the first terminator, and if the variable is live into a landing pad, the split must happen before the call that can throw. llvm-svn: 124894
Diffstat (limited to 'llvm/lib/CodeGen/SplitKit.cpp')
-rw-r--r--llvm/lib/CodeGen/SplitKit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SplitKit.cpp b/llvm/lib/CodeGen/SplitKit.cpp
index e4a82adfb32..68f782d2805 100644
--- a/llvm/lib/CodeGen/SplitKit.cpp
+++ b/llvm/lib/CodeGen/SplitKit.cpp
@@ -826,7 +826,7 @@ SlotIndex SplitEditor::enterIntvAtEnd(MachineBasicBlock &MBB) {
}
DEBUG(dbgs() << ": valno " << ParentVNI->id);
VNInfo *VNI = defFromParent(OpenIdx, ParentVNI, Last, MBB,
- MBB.getFirstTerminator());
+ LIS.getLastSplitPoint(Edit.getParent(), &MBB));
RegAssign.insert(VNI->def, End, OpenIdx);
DEBUG(dump());
return VNI->def;
OpenPOWER on IntegriCloud