We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 113e0c9 commit c465a56Copy full SHA for c465a56
llvm/lib/Transforms/Vectorize/VPlanUtils.cpp
@@ -197,7 +197,8 @@ bool vputils::isSingleScalar(const VPValue *VPV) {
197
all_of(VPI->operands(), isSingleScalar));
198
if (auto *RR = dyn_cast<VPReductionRecipe>(VPV))
199
return !RR->isPartialReduction();
200
- if (isa<VPVectorPointerRecipe, VPVectorEndPointerRecipe>(VPV))
+ if (isa<VPCanonicalIVPHIRecipe, VPVectorPointerRecipe,
201
+ VPVectorEndPointerRecipe>(VPV))
202
return true;
203
if (auto *Expr = dyn_cast<VPExpressionRecipe>(VPV))
204
return Expr->isSingleScalar();
0 commit comments