Simplify code. NFC.

llvm-svn: 248610
This commit is contained in:
Chad Rosier 2015-09-25 20:20:22 +00:00
parent a67559c106
commit d9f102b464
1 changed files with 1 additions and 6 deletions

View File

@ -224,12 +224,7 @@ bool AggressiveAntiDepBreaker::IsImplicitDefUse(MachineInstr *MI,
if (Reg == 0)
return false;
MachineOperand *Op = nullptr;
if (MO.isDef())
Op = MI->findRegisterUseOperand(Reg, true);
else
Op = MI->findRegisterDefOperand(Reg);
MachineOperand *Op = MI->findRegisterUseOperand(Reg, /*isKill=*/MO.isDef());
return(Op && Op->isImplicit());
}