mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-28 13:51:09 +00:00
[PeepholeOptimizer] Remove dead code
At this point we have already ruled out all def operands, so we can't possibly see a dead implicit def operand.
This commit is contained in:
parent
2017b8f59b
commit
fe2d2102d1
@ -1357,9 +1357,6 @@ bool PeepholeOptimizer::foldImmediate(
|
||||
MachineOperand &MO = MI.getOperand(i);
|
||||
if (!MO.isReg() || MO.isDef())
|
||||
continue;
|
||||
// Ignore dead implicit defs.
|
||||
if (MO.isImplicit() && MO.isDead())
|
||||
continue;
|
||||
Register Reg = MO.getReg();
|
||||
if (!Reg.isVirtual())
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user