combine predicates; NFCI
authorSanjay Patel <spatel@rotateright.com>
Mon, 12 Oct 2015 18:15:08 +0000 (18:15 +0000)
committerSanjay Patel <spatel@rotateright.com>
Mon, 12 Oct 2015 18:15:08 +0000 (18:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250075 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index 82f9fa7..2cb41c9 100644 (file)
@@ -25736,10 +25736,7 @@ static SDValue PerformSExtCombine(SDNode *N, SelectionDAG &DAG,
     }
   }
 
-  if (!Subtarget->hasFp256())
-    return SDValue();
-
-  if (VT.isVector() && VT.getSizeInBits() == 256)
+  if (Subtarget->hasAVX() && VT.isVector() && VT.getSizeInBits() == 256)
     if (SDValue R = WidenMaskArithmetic(N, DAG, DCI, Subtarget))
       return R;