Skip to content

Commit 8572fb7

Browse files
committed
[LV] Strengthen assert: VPlan0 doesn't have WidenPHIs (NFC)
VPWidenCanonicalIV and VPBlend recipes are created by VPPredicator, and VPCanonicalIVPHI and VPInstruction recipes are created by VPlanConstruction. WidenPHIs are never created.
1 parent 2545209 commit 8572fb7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8335,11 +8335,7 @@ VPlanPtr LoopVectorizationPlanner::tryToBuildVPlanWithVPRecipes(
83358335
&R) ||
83368336
(isa<VPInstruction>(&R) && !UnderlyingValue))
83378337
continue;
8338-
8339-
// FIXME: VPlan0, which models a copy of the original scalar loop, should
8340-
// not use VPWidenPHIRecipe to model the phis.
8341-
assert((isa<VPWidenPHIRecipe>(&R) || isa<VPInstruction>(&R)) &&
8342-
UnderlyingValue && "unsupported recipe");
8338+
assert(isa<VPInstruction>(&R) && UnderlyingValue && "unsupported recipe");
83438339

83448340
// TODO: Gradually replace uses of underlying instruction by analyses on
83458341
// VPlan.

0 commit comments

Comments
 (0)