Revert "Simplify code. NFC."

This reverts commit r248610.

llvm-svn: 249887
This commit is contained in:
Chad Rosier 2015-10-09 19:48:48 +00:00
parent 22c8efcd34
commit 47eba05b47
1 changed files with 6 additions and 1 deletions

View File

@ -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());
}