[llvm] [VPlan] Unroll VPReplicateRecipe by VF. (PR #142433)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 9 02:20:44 PDT 2025
================
@@ -7291,6 +7291,7 @@ DenseMap<const SCEV *, Value *> LoopVectorizationPlanner::executePlan(
// cost model is complete for better cost estimates.
VPlanTransforms::runPass(VPlanTransforms::unrollByUF, BestVPlan, BestUF,
OrigLoop->getHeader()->getContext());
+ VPlanTransforms::runPass(VPlanTransforms::unrollByVF, BestVPlan, BestVF);
----------------
david-arm wrote:
Is the general idea that by unrolling the replicate recipes we open up more folding/dce opportunities within vplan, to reduce the burden on dce/instcombine?
https://github.com/llvm/llvm-project/pull/142433
More information about the llvm-commits
mailing list