summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-10-05 22:19:29 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-10-05 22:19:29 +0000
commitb46d32367f3b0a0874b8ea570d332ed978bd5e18 (patch)
treee0c6ba76811ffacb3475f802fa175f6972560de7
parent907d86db226afc7bf08e38677c482dff046c37f0 (diff)
downloadbcm5719-llvm-b46d32367f3b0a0874b8ea570d332ed978bd5e18.tar.gz
bcm5719-llvm-b46d32367f3b0a0874b8ea570d332ed978bd5e18.zip
Intervals are half-open.
llvm-svn: 115694
-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 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));
OpenPOWER on IntegriCloud