Simplify checking for pointer types in BBVectorize (this change was suggested by Duncan).

llvm-svn: 154787
This commit is contained in:
Hal Finkel 2012-04-16 03:49:42 +00:00
parent 457fbe481c
commit 4f7adc1f50

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