summaryrefslogtreecommitdiff
path: root/lib/Transforms/Vectorize/BBVectorize.cpp
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2012-06-28 05:42:43 +0000
committerHal Finkel <hfinkel@anl.gov>2012-06-28 05:42:43 +0000
commita9ad9f64d56890852ff92639935eaf72b1157a98 (patch)
treebafe0436d25b554488003d0391440d57e2099ca2 /lib/Transforms/Vectorize/BBVectorize.cpp
parent64e1b28643d87e70734deb5f3d2d298e859c2fd2 (diff)
downloadllvm-a9ad9f64d56890852ff92639935eaf72b1157a98.tar.gz
llvm-a9ad9f64d56890852ff92639935eaf72b1157a98.tar.bz2
llvm-a9ad9f64d56890852ff92639935eaf72b1157a98.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159331 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Vectorize/BBVectorize.cpp')
-rw-r--r--lib/Transforms/Vectorize/BBVectorize.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/Transforms/Vectorize/BBVectorize.cpp b/lib/Transforms/Vectorize/BBVectorize.cpp
index 9441c1ba7a..af14ee304b 100644
--- a/lib/Transforms/Vectorize/BBVectorize.cpp
+++ b/lib/Transforms/Vectorize/BBVectorize.cpp
@@ -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