summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-06-04 00:38:56 +0000
committerOwen Anderson <resistor@mac.com>2008-06-04 00:38:56 +0000
commitc777d9e6fe7a8ac920172289c6735cc088bcc8e9 (patch)
treee9a9d0f6d39fe60416293f883ceff3620ad61ad4 /llvm/lib
parenta2981a2c7bdb0b121ba74ba7d07994228dafc32c (diff)
downloadbcm5719-llvm-c777d9e6fe7a8ac920172289c6735cc088bcc8e9.tar.gz
bcm5719-llvm-c777d9e6fe7a8ac920172289c6735cc088bcc8e9.zip
We need to subtract one from this index because live ranges are open at the end.
llvm-svn: 51922
Diffstat (limited to 'llvm/lib')
-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 449ef38a3a1..ab9538761d2 100644
--- a/llvm/lib/CodeGen/StrongPHIElimination.cpp
+++ b/llvm/lib/CodeGen/StrongPHIElimination.cpp
@@ -467,7 +467,7 @@ void StrongPHIElimination::processBlock(MachineBasicBlock* MBB) {
} else {
// Otherwise, add it to the renaming set
LiveInterval& I = LI.getOrCreateInterval(SrcReg);
- unsigned idx = LI.getMBBEndIdx(P->getOperand(i).getMBB());
+ unsigned idx = LI.getMBBEndIdx(P->getOperand(i).getMBB()) - 1;
VNInfo* VN = I.getLiveRangeContaining(idx)->valno;
assert(VN && "No VNInfo for register?");
OpenPOWER on IntegriCloud