projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a789af2
)
Fix off-by-one error when updating live intervals.
author
Owen Anderson
<resistor@mac.com>
Wed, 24 Sep 2008 21:30:38 +0000
(21:30 +0000)
committer
Owen Anderson
<resistor@mac.com>
Wed, 24 Sep 2008 21:30:38 +0000
(21:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56567
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/StrongPHIElimination.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/StrongPHIElimination.cpp
b/lib/CodeGen/StrongPHIElimination.cpp
index 8bda41db3fa29a7d39988d0451e63a2a53f9c461..33bfa57b1cd5e4d44238c8941d80d1c06dedeb1d 100644
(file)
--- a/
lib/CodeGen/StrongPHIElimination.cpp
+++ b/
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)));
LiveRange LR (LI.getMBBStartIdx(I->getParent()),
- LiveIntervals::getUseIndex(LI.getInstructionIndex(I)),
+ LiveIntervals::getUseIndex(LI.getInstructionIndex(I))
+1
,
FirstVN);
Int.addRange(LR);
FirstVN);
Int.addRange(LR);