This is NFC-intended. The 'valid' call allows int/FP/pointers
for other parts of SLP. The difference here is that we can't
reduce pointers.
if (!RdxTreeInst.isVectorizable(B))
return false;
+ // Analyze "regular" integer/FP types for reductions - no target-specific
+ // types or pointers.
Type *Ty = B->getType();
- if (!isValidElementType(Ty))
- return false;
- if (!Ty->isIntOrIntVectorTy() && !Ty->isFPOrFPVectorTy())
+ if (!isValidElementType(Ty) || Ty->isPointerTy())
return false;
RdxLeafVal.clear();