[llvm] r248404 - move call to convertIntLogicToFPLogic up; NFCI

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 23 11:03:37 PDT 2015


Author: spatel
Date: Wed Sep 23 13:03:37 2015
New Revision: 248404

URL: http://llvm.org/viewvc/llvm-project?rev=248404&view=rev
Log:
move call to convertIntLogicToFPLogic up; NFCI

The BEXTR comments didn't make sense before, we may want to extend the
FP logic transform to work on vectors, and this way is more beautiful.


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=248404&r1=248403&r2=248404&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Wed Sep 23 13:03:37 2015
@@ -24456,6 +24456,9 @@ static SDValue PerformAndCombine(SDNode
   if (SDValue R = CMPEQCombine(N, DAG, DCI, Subtarget))
     return R;
 
+  if (SDValue FPLogic = convertIntLogicToFPLogic(N, DAG, Subtarget))
+    return FPLogic;
+
   EVT VT = N->getValueType(0);
   SDValue N0 = N->getOperand(0);
   SDValue N1 = N->getOperand(1);
@@ -24482,9 +24485,6 @@ static SDValue PerformAndCombine(SDNode
       }
     } // BEXTR
 
-    if (SDValue FPLogic = convertIntLogicToFPLogic(N, DAG, Subtarget))
-      return FPLogic;
-
     return SDValue();
   }
 




More information about the llvm-commits mailing list