summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2012-04-16 03:49:42 +0000
committerHal Finkel <hfinkel@anl.gov>2012-04-16 03:49:42 +0000
commit831a6e86d50414aa715846707e1f9f54f98513cb (patch)
tree8f56998e951487516563e168f28e283e7b455e57 /lib
parent31490baf38680012000890dcb11ac4914ec94911 (diff)
downloadllvm-831a6e86d50414aa715846707e1f9f54f98513cb.tar.gz
llvm-831a6e86d50414aa715846707e1f9f54f98513cb.tar.bz2
llvm-831a6e86d50414aa715846707e1f9f54f98513cb.tar.xz
Simplify checking for pointer types in BBVectorize (this change was suggested by Duncan).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154787 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Transforms/Vectorize/BBVectorize.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/Transforms/Vectorize/BBVectorize.cpp b/lib/Transforms/Vectorize/BBVectorize.cpp
index 290d82dc77..a247e2d6bc 100644
--- a/lib/Transforms/Vectorize/BBVectorize.cpp
+++ b/lib/Transforms/Vectorize/BBVectorize.cpp
@@ -613,11 +613,8 @@ namespace {
return false;
if ((!Config.VectorizePointers || TD == 0)
- && ((T1->isPointerTy() ||
- (T1->isVectorTy() && T1->getScalarType()->isPointerTy())) ||
- (T2->isPointerTy() ||
- (T2->isVectorTy() && T2->getScalarType()->isPointerTy()))
- ))
+ && (T1->getScalarType()->isPointerTy() ||
+ T2->getScalarType()->isPointerTy()))
return false;
if (T1->getPrimitiveSizeInBits() > Config.VectorBits/2 ||