[llvm] [VPlan] Add transformation to narrow interleave groups. (PR #106441)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 8 17:01:28 PST 2025


================
@@ -7725,6 +7725,7 @@ DenseMap<const SCEV *, Value *> LoopVectorizationPlanner::executePlan(
   VPlanTransforms::unrollByUF(BestVPlan, BestUF,
                               OrigLoop->getHeader()->getContext());
   VPlanTransforms::optimizeForVFAndUF(BestVPlan, BestVF, BestUF, PSE);
+  VPlanTransforms::narrowInterleaveGroups(BestVPlan, BestVF);
----------------
ayalz wrote:

This transform relies on a single VF, but is independent of UF, right? Can it be applied earlier, during optimization of VPlans rather than execution of BestPlan, possibly involving cloning VPlans that span a range of VF's.

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


More information about the llvm-commits mailing list