Skip to content

Commit 96cc4ba

Browse files
committed
!fixup treat them always as single-scalar.
1 parent dcae1ce commit 96cc4ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Transforms/Vectorize/VPlanUtils.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)