[llvm] [VPlan] Run initial recipe simplification on VPlan0. (PR #176828)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 6 06:19:52 PST 2026


================
@@ -8122,6 +8122,8 @@ void LoopVectorizationPlanner::buildVPlansWithVPRecipes(ElementCount MinVF,
       Legal->getReductionVars(), Legal->getFixedOrderRecurrences(),
       CM.getInLoopReductions(), Hints.allowReordering());
 
+  VPlanTransforms::simplifyRecipes(*VPlan0);
----------------
artagnon wrote:

What happens if you move this near the beginning of tryToBuildVPlanWithVPRecipes, before creating wide recipes with predication? I think we'd get the same optz results, and it would save us from special-casing no-vector-loop-region in simplifyRecipe?

https://github.com/llvm/llvm-project/pull/176828


More information about the llvm-commits mailing list