aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib
diff options
context:
space:
mode:
authorRamkumar Ramachandra <ramkumar.ramachandra@codasip.com>2025-10-30 18:32:33 +0000
committerGitHub <noreply@github.com>2025-10-30 18:32:33 +0000
commit01fbbda62c85cd7f42d15959a88dd71ec02a2586 (patch)
tree946479014a67470cfe769092d1541bc1fdeaf77c /llvm/lib
parent87673d3fa7398af1ae581121a1b971808407d778 (diff)
downloadllvm-01fbbda62c85cd7f42d15959a88dd71ec02a2586.zip
llvm-01fbbda62c85cd7f42d15959a88dd71ec02a2586.tar.gz
llvm-01fbbda62c85cd7f42d15959a88dd71ec02a2586.tar.bz2
[LV] Strengthen assert: VPlan0 doesn't have WidenPHIs (NFC) (#165715)
VPWidenCanonicalIV and VPBlend recipes are created by VPPredicator, and VPCanonicalIVPHI and VPInstruction recipes are created by VPlanConstruction. WidenPHIs are never created.
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Vectorize/LoopVectorize.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index 8ebc108..505fb43 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -8340,11 +8340,7 @@ VPlanPtr LoopVectorizationPlanner::tryToBuildVPlanWithVPRecipes(
&R) ||
(isa<VPInstruction>(&R) && !UnderlyingValue))
continue;
-
- // FIXME: VPlan0, which models a copy of the original scalar loop, should
- // not use VPWidenPHIRecipe to model the phis.
- assert((isa<VPWidenPHIRecipe>(&R) || isa<VPInstruction>(&R)) &&
- UnderlyingValue && "unsupported recipe");
+ assert(isa<VPInstruction>(&R) && UnderlyingValue && "unsupported recipe");
// TODO: Gradually replace uses of underlying instruction by analyses on
// VPlan.