Skip to content

Commit 01fbbda

Browse files
authored
[LV] Strengthen assert: VPlan0 doesn't have WidenPHIs (NFC) (llvm#165715)
VPWidenCanonicalIV and VPBlend recipes are created by VPPredicator, and VPCanonicalIVPHI and VPInstruction recipes are created by VPlanConstruction. WidenPHIs are never created.
1 parent 87673d3 commit 01fbbda

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
@@ -8340,11 +8340,7 @@ VPlanPtr LoopVectorizationPlanner::tryToBuildVPlanWithVPRecipes(
83408340
&R) ||
83418341
(isa<VPInstruction>(&R) && !UnderlyingValue))
83428342
continue;
8343-
8344-
// FIXME: VPlan0, which models a copy of the original scalar loop, should
8345-
// not use VPWidenPHIRecipe to model the phis.
8346-
assert((isa<VPWidenPHIRecipe>(&R) || isa<VPInstruction>(&R)) &&
8347-
UnderlyingValue && "unsupported recipe");
8343+
assert(isa<VPInstruction>(&R) && UnderlyingValue && "unsupported recipe");
83488344

83498345
// TODO: Gradually replace uses of underlying instruction by analyses on
83508346
// VPlan.

0 commit comments

Comments
 (0)