]> granicus.if.org Git - llvm/commitdiff
[AVX-512] Move the combine that runs combineBitcastForMaskedOp to the last DAG combin...
authorCraig Topper <craig.topper@gmail.com>
Thu, 26 Jan 2017 07:17:58 +0000 (07:17 +0000)
committerCraig Topper <craig.topper@gmail.com>
Thu, 26 Jan 2017 07:17:58 +0000 (07:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293157 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index 79e58ba4b03d4b33da7a7591f895f2cbf6ed4e0f..7dc37f432db1cf2dfb03ed432e01227132d57396 100644 (file)
@@ -29505,7 +29505,7 @@ static SDValue combineSelect(SDNode *N, SelectionDAG &DAG,
   // Look for vselects with LHS/RHS being bitcasted from an operation that
   // can be executed on another type. Push the bitcast to the inputs of
   // the operation. This exposes opportunities for using masking instructions.
-  if (N->getOpcode() == ISD::VSELECT && !DCI.isBeforeLegalizeOps() &&
+  if (N->getOpcode() == ISD::VSELECT && DCI.isAfterLegalizeVectorOps() &&
       CondVT.getVectorElementType() == MVT::i1) {
     if (combineBitcastForMaskedOp(LHS, DAG, DCI))
       return SDValue(N, 0);