summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-09-24 21:30:38 +0000
committerOwen Anderson <resistor@mac.com>2008-09-24 21:30:38 +0000
commit4ef4b1a7c15d9e40f7eca56f2593422dfc25a4c2 (patch)
tree3b813b6e2811bfdc6b4fdd1817a8290fdeb3650a /llvm/lib/CodeGen
parent24b43007d1c465a34a47db8e4d0790e9ef81b720 (diff)
downloadbcm5719-llvm-4ef4b1a7c15d9e40f7eca56f2593422dfc25a4c2.tar.gz
bcm5719-llvm-4ef4b1a7c15d9e40f7eca56f2593422dfc25a4c2.zip
Fix off-by-one error when updating live intervals.
llvm-svn: 56567
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/StrongPHIElimination.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/StrongPHIElimination.cpp b/llvm/lib/CodeGen/StrongPHIElimination.cpp
index 8bda41db3fa..33bfa57b1cd 100644
--- a/llvm/lib/CodeGen/StrongPHIElimination.cpp
+++ b/llvm/lib/CodeGen/StrongPHIElimination.cpp
@@ -822,7 +822,7 @@ void StrongPHIElimination::InsertCopies(MachineDomTreeNode* MDTN,
LiveIntervals::getUseIndex(LI.getInstructionIndex(I)));
LiveRange LR (LI.getMBBStartIdx(I->getParent()),
- LiveIntervals::getUseIndex(LI.getInstructionIndex(I)),
+ LiveIntervals::getUseIndex(LI.getInstructionIndex(I))+1,
FirstVN);
Int.addRange(LR);
OpenPOWER on IntegriCloud