summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SplitKit.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-02-09 23:30:25 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-02-09 23:30:25 +0000
commit9b057771ba22441b8d312404204433477b4be657 (patch)
treee4358f04eed996065432b9b84ec25456fe41b963 /lib/CodeGen/SplitKit.h
parent0bef1f3d1b64d40f21451ab56cdafe1fa794730d (diff)
downloadllvm-9b057771ba22441b8d312404204433477b4be657.tar.gz
llvm-9b057771ba22441b8d312404204433477b4be657.tar.bz2
llvm-9b057771ba22441b8d312404204433477b4be657.tar.xz
Use the LiveBLocks array for SplitEditor::splitSingleBlocks() as well.
This fixes a bug where splitSingleBlocks() could split a live range after a terminator instruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125237 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SplitKit.h')
-rw-r--r--lib/CodeGen/SplitKit.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/SplitKit.h b/lib/CodeGen/SplitKit.h
index 92945147ae..2b593d5887 100644
--- a/lib/CodeGen/SplitKit.h
+++ b/lib/CodeGen/SplitKit.h
@@ -407,6 +407,10 @@ public:
/// Return the end of the live range.
SlotIndex leaveIntvAfter(SlotIndex Idx);
+ /// leaveIntvBefore - Leave the open interval before the instruction at Idx.
+ /// Return the end of the live range.
+ SlotIndex leaveIntvBefore(SlotIndex Idx);
+
/// leaveIntvAtTop - Leave the interval at the top of MBB.
/// Add liveness from the MBB top to the copy.
/// Return the end of the live range.