[llvm] r324586 - [X86] Fix compilation of r324580.

Clement Courbet via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 8 01:41:50 PST 2018


Author: courbet
Date: Thu Feb  8 01:41:50 2018
New Revision: 324586

URL: http://llvm.org/viewvc/llvm-project?rev=324586&view=rev
Log:
[X86] Fix compilation of r324580.

@ctopper Can you check that the fix is correct ?

Modified:
    llvm/trunk/lib/Target/X86/X86ISelLowering.cpp

Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=324586&r1=324585&r2=324586&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Thu Feb  8 01:41:50 2018
@@ -18152,7 +18152,7 @@ static SDValue EmitKTEST(SDValue Op0, SD
   // If the input is an OR, we can combine it's operands into the KORTEST.
   SDValue LHS = Op0;
   SDValue RHS = Op0;
-  if (Op0.getOpcode() == ISD::OR && Op0.hasOneUse( && Op0.hasOneUse())) {
+  if (Op0.getOpcode() == ISD::OR && Op0.hasOneUse()) {
     LHS = Op0.getOperand(0);
     RHS = Op0.getOperand(1);
   }




More information about the llvm-commits mailing list