mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
We need to subtract one from this index because live ranges are open at the end.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51922 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ba12f57ebe
commit
3094a4c97a
@ -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?");
|
||||
|
Loading…
Reference in New Issue
Block a user