forked from OSchip/llvm-project
Revert "Simplify code. NFC."
This reverts commit r248610. llvm-svn: 249887
This commit is contained in:
parent
22c8efcd34
commit
47eba05b47
|
@ -224,7 +224,12 @@ bool AggressiveAntiDepBreaker::IsImplicitDefUse(MachineInstr *MI,
|
|||
if (Reg == 0)
|
||||
return false;
|
||||
|
||||
MachineOperand *Op = MI->findRegisterUseOperand(Reg, /*isKill=*/MO.isDef());
|
||||
MachineOperand *Op = nullptr;
|
||||
if (MO.isDef())
|
||||
Op = MI->findRegisterUseOperand(Reg, true);
|
||||
else
|
||||
Op = MI->findRegisterDefOperand(Reg);
|
||||
|
||||
return(Op && Op->isImplicit());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue