summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commit0873d73cbf41192b64bc874a893b180c1a76d870 (patch)
tree6ac8dcb92239f9700945306f65467d8ede529d26 /llvm/lib
parentf2dcb9a9c46a8fffc90257f0686560654268b810 (diff)
downloadbcm5719-llvm-0873d73cbf41192b64bc874a893b180c1a76d870.tar.gz
bcm5719-llvm-0873d73cbf41192b64bc874a893b180c1a76d870.zip
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
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Vectorize/BBVectorize.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Vectorize/BBVectorize.cpp b/llvm/lib/Transforms/Vectorize/BBVectorize.cpp
index 9441c1ba7ae..af14ee304b9 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<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
OpenPOWER on IntegriCloud