diff options
| author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-02-04 19:33:11 +0000 |
|---|---|---|
| committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-02-04 19:33:11 +0000 |
| commit | 096bd8837fd1e90c10db05af2614c962946a7a8a (patch) | |
| tree | f45913dd532527603738db9d9c8c3cc0f27bc961 /llvm/lib/CodeGen/SplitKit.cpp | |
| parent | fefe6ebc73589952256d62a46e2e2136c022dc19 (diff) | |
| download | bcm5719-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.cpp | 2 |
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; |

