Simplify code. NFC.
authorChad Rosier <mcrosier@codeaurora.org>
Fri, 25 Sep 2015 20:20:22 +0000 (20:20 +0000)
committerChad Rosier <mcrosier@codeaurora.org>
Fri, 25 Sep 2015 20:20:22 +0000 (20:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248610 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AggressiveAntiDepBreaker.cpp

index bba8f511dc9b93523a9fa60d7305747f418ef8dc..7eac7ce163fa246b503d3967bcc607d507c8976f 100644 (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());
 }