File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -185,8 +185,7 @@ bool vputils::isSingleScalar(const VPValue *VPV) {
185185 all_of (Rep->operands (), isSingleScalar));
186186 }
187187 if (isa<VPWidenGEPRecipe, VPDerivedIVRecipe, VPBlendRecipe,
188- VPWidenSelectRecipe, VPVectorPointerRecipe, VPVectorEndPointerRecipe>(
189- VPV))
188+ VPWidenSelectRecipe>(VPV))
190189 return all_of (VPV->getDefiningRecipe ()->operands (), isSingleScalar);
191190 if (auto *WidenR = dyn_cast<VPWidenRecipe>(VPV)) {
192191 return preservesUniformity (WidenR->getOpcode ()) &&
@@ -198,7 +197,8 @@ bool vputils::isSingleScalar(const VPValue *VPV) {
198197 all_of (VPI->operands (), isSingleScalar));
199198 if (isa<VPPartialReductionRecipe>(VPV))
200199 return false ;
201- if (isa<VPReductionRecipe>(VPV))
200+ if (isa<VPReductionRecipe, VPVectorPointerRecipe, VPVectorEndPointerRecipe>(
201+ VPV))
202202 return true ;
203203 if (auto *Expr = dyn_cast<VPExpressionRecipe>(VPV))
204204 return Expr->isSingleScalar ();
You can’t perform that action at this time.
0 commit comments