mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
Fix a bug with the LiveIntervals updating in the two-address pass found by
running ASCI_Purple/SMG2000 in the test-suite. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175957 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4c57942608
commit
b4bd022731
@ -370,7 +370,7 @@ static bool isPlainlyKilled(MachineInstr *MI, unsigned Reg,
|
||||
SlotIndex useIdx = LIS->getInstructionIndex(MI);
|
||||
LiveInterval::const_iterator I = LI.find(useIdx);
|
||||
assert(I != LI.end() && "Reg must be live-in to use.");
|
||||
return SlotIndex::isSameInstr(I->end, useIdx);
|
||||
return !I->end.isBlock() && SlotIndex::isSameInstr(I->end, useIdx);
|
||||
}
|
||||
|
||||
return MI->killsRegister(Reg);
|
||||
|
Loading…
Reference in New Issue
Block a user