diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-10-05 22:19:29 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-10-05 22:19:29 +0000 |
commit | b46d32367f3b0a0874b8ea570d332ed978bd5e18 (patch) | |
tree | e0c6ba76811ffacb3475f802fa175f6972560de7 | |
parent | 907d86db226afc7bf08e38677c482dff046c37f0 (diff) | |
download | bcm5719-llvm-b46d32367f3b0a0874b8ea570d332ed978bd5e18.tar.gz bcm5719-llvm-b46d32367f3b0a0874b8ea570d332ed978bd5e18.zip |
Intervals are half-open.
llvm-svn: 115694
-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 cce97fdb67d..bd164a30d9d 100644 --- a/llvm/lib/CodeGen/SplitKit.cpp +++ b/llvm/lib/CodeGen/SplitKit.cpp @@ -550,7 +550,7 @@ void LiveIntervalMap::addSimpleRange(SlotIndex Start, SlotIndex End, // ParentVNI is a complex value. We must map per MBB. MachineFunction::iterator MBB = lis_.getMBBFromIndex(Start); - MachineFunction::iterator MBBE = lis_.getMBBFromIndex(End); + MachineFunction::iterator MBBE = lis_.getMBBFromIndex(End.getPrevSlot()); if (MBB == MBBE) { li_->addRange(LiveRange(Start, End, VNI)); |