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
This commit is contained in:
Hal Finkel 2012-04-16 03:49:42 +00:00
parent 31490baf38
commit 831a6e86d5

View File

@ -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 ||