From: Hal Finkel Date: Mon, 16 Apr 2012 03:49:42 +0000 (+0000) Subject: Simplify checking for pointer types in BBVectorize (this change was suggested by... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=831a6e86d50414aa715846707e1f9f54f98513cb;p=oota-llvm.git 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 --- diff --git a/lib/Transforms/Vectorize/BBVectorize.cpp b/lib/Transforms/Vectorize/BBVectorize.cpp index 290d82dc77a..a247e2d6bc0 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 ||