From 0873d73cbf41192b64bc874a893b180c1a76d870 Mon Sep 17 00:00:00 2001 From: Hal Finkel Date: Thu, 28 Jun 2012 05:42:43 +0000 Subject: [PATCH] Remove a useless check in BBVectorize. A shuffle mask will always be a constant, but I did not realize that when I originally wrote the code. llvm-svn: 159331 --- llvm/lib/Transforms/Vectorize/BBVectorize.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/llvm/lib/Transforms/Vectorize/BBVectorize.cpp b/llvm/lib/Transforms/Vectorize/BBVectorize.cpp index 9441c1ba7ae6..af14ee304b9e 100644 --- a/llvm/lib/Transforms/Vectorize/BBVectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/BBVectorize.cpp @@ -747,11 +747,6 @@ namespace { } else { return false; } - } else if (isa(I)) { - // Only merge two shuffles if they're both constant - return isa(I->getOperand(2)) && - isa(J->getOperand(2)); - // FIXME: We may want to vectorize non-constant shuffles also. } // The powi intrinsic is special because only the first argument is