[llvm] r248610 - Simplify code. NFC.

Chad Rosier via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 25 13:20:23 PDT 2015


Author: mcrosier
Date: Fri Sep 25 15:20:22 2015
New Revision: 248610

URL: http://llvm.org/viewvc/llvm-project?rev=248610&view=rev
Log:
Simplify code.  NFC.

Modified:
    llvm/trunk/lib/CodeGen/AggressiveAntiDepBreaker.cpp

Modified: llvm/trunk/lib/CodeGen/AggressiveAntiDepBreaker.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AggressiveAntiDepBreaker.cpp?rev=248610&r1=248609&r2=248610&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AggressiveAntiDepBreaker.cpp (original)
+++ llvm/trunk/lib/CodeGen/AggressiveAntiDepBreaker.cpp Fri Sep 25 15:20:22 2015
@@ -224,12 +224,7 @@ bool AggressiveAntiDepBreaker::IsImplici
   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());
 }
 




More information about the llvm-commits mailing list