Remove a useless check in BBVectorize.
authorHal Finkel <hfinkel@anl.gov>
Thu, 28 Jun 2012 05:42:43 +0000 (05:42 +0000)
committerHal Finkel <hfinkel@anl.gov>
Thu, 28 Jun 2012 05:42:43 +0000 (05:42 +0000)
A shuffle mask will always be a constant, but I did not realize that
when I originally wrote the code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159331 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Vectorize/BBVectorize.cpp

index 9441c1ba7ae64eac4cb8ff2de6cbcdc05ab5ef7e..af14ee304b9ecb8034994f6cdf60b94b93f3c6c1 100644 (file)
@@ -747,11 +747,6 @@ namespace {
       } else {
         return false;
       }
-    } else if (isa<ShuffleVectorInst>(I)) {
-      // Only merge two shuffles if they're both constant
-      return isa<Constant>(I->getOperand(2)) &&
-             isa<Constant>(J->getOperand(2));
-      // FIXME: We may want to vectorize non-constant shuffles also.
     }
 
     // The powi intrinsic is special because only the first argument is