mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-06 20:32:19 +00:00
Fix off by one error. I misunderstood the comment about killedAt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134229 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1c8b97cbc0
commit
fe11caaa73
@ -1213,7 +1213,7 @@ static bool RegistersDefinedFromSameValue(LiveIntervals &li,
|
||||
|
||||
// FIXME: If "B = X" kills X, we have to move the kill back to its
|
||||
// previous use. For now we just avoid the optimization in that case.
|
||||
SlotIndex CopyIdx = li.getInstructionIndex(MI).getNextIndex().getDefIndex();
|
||||
SlotIndex CopyIdx = li.getInstructionIndex(MI).getDefIndex();
|
||||
LiveInterval &SrcInt = li.getInterval(Src);
|
||||
if (SrcInt.killedAt(CopyIdx))
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user