mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-19 02:25:01 +00:00
At -O0, multiple uses of a virtual registers in the same BB are being marked
"kill". This looks like a bug upstream. Since that's going to take some time to understand, loosen the assertion and disable the optimization when multiple kills are seen. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144568 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -502,7 +502,8 @@ MachineInstr *findLocalKill(unsigned Reg, MachineBasicBlock *MBB,
|
|||||||
continue;
|
continue;
|
||||||
if (!UI.getOperand().isKill())
|
if (!UI.getOperand().isKill())
|
||||||
return 0;
|
return 0;
|
||||||
assert(!KillMI && "More than one local kills?");
|
if (KillMI)
|
||||||
|
return 0; // -O0 kill markers cannot be trusted?
|
||||||
KillMI = UseMI;
|
KillMI = UseMI;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user