[llvm] [VPlan] Run initial recipe simplification on VPlan0. (PR #176828)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 9 04:39:40 PST 2026
================
@@ -8122,6 +8122,8 @@ void LoopVectorizationPlanner::buildVPlansWithVPRecipes(ElementCount MinVF,
Legal->getReductionVars(), Legal->getFixedOrderRecurrences(),
CM.getInLoopReductions(), Hints.allowReordering());
+ VPlanTransforms::simplifyRecipes(*VPlan0);
----------------
fhahn wrote:
The issue is not really predication, but that we will fail to create VPWidenRecipes for the transformed VPInstructions without underlying value. This means we may miss out on some transformations that only work for VPWidenRecipes.
I think in general we may have to revisit this independent of the patch. We currently replace a VPWidenRecipe with a VPInstruction without underlying value, but now we skip the VPInstruction during cost computation, which is not right.
https://github.com/llvm/llvm-project/pull/176828
More information about the llvm-commits
mailing list