1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01: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.

llvm-svn: 144568
This commit is contained in:
Evan Cheng 2011-11-14 21:02:09 +00:00
parent 53185e9016
commit ba11ee300a

View File

@ -502,7 +502,8 @@ MachineInstr *findLocalKill(unsigned Reg, MachineBasicBlock *MBB,
continue;
if (!UI.getOperand().isKill())
return 0;
assert(!KillMI && "More than one local kills?");
if (KillMI)
return 0; // -O0 kill markers cannot be trusted?
KillMI = UseMI;
}