]> granicus.if.org Git - llvm/commitdiff
Use ShuffleVectorSDNode::isSplat member method instead of static method isSplatMask...
authorCraig Topper <craig.topper@gmail.com>
Thu, 30 Jun 2016 04:38:51 +0000 (04:38 +0000)
committerCraig Topper <craig.topper@gmail.com>
Thu, 30 Jun 2016 04:38:51 +0000 (04:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274208 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AArch64/AArch64ISelLowering.cpp
lib/Target/ARM/ARMISelLowering.cpp

index e4f48d596b272bab622a606bb575f04b43e6fdb7..575dee8f8eafbeb84ecb6c966c748fd443aeaaf6 100644 (file)
@@ -5638,8 +5638,7 @@ SDValue AArch64TargetLowering::LowerVECTOR_SHUFFLE(SDValue Op,
   SDValue V1 = Op.getOperand(0);
   SDValue V2 = Op.getOperand(1);
 
-  if (ShuffleVectorSDNode::isSplatMask(&ShuffleMask[0],
-                                       V1.getValueType().getSimpleVT())) {
+  if (SVN->isSplat()) {
     int Lane = SVN->getSplatIndex();
     // If this is undef splat, generate it via "just" vdup, if possible.
     if (Lane == -1)
index adf921890061d00d90feeebfa3b573e43cba21cc..ad7fed46f0c02a7e1bf4ddd7bdcca2b40a17c0ce 100644 (file)
@@ -6225,7 +6225,7 @@ static SDValue LowerVECTOR_SHUFFLE(SDValue Op, SelectionDAG &DAG) {
 
   unsigned EltSize = VT.getVectorElementType().getSizeInBits();
   if (EltSize <= 32) {
-    if (ShuffleVectorSDNode::isSplatMask(&ShuffleMask[0], VT)) {
+    if (SVN->isSplat()) {
       int Lane = SVN->getSplatIndex();
       // If this is undef splat, generate it via "just" vdup, if possible.
       if (Lane == -1) Lane = 0;