[llvm] [LV] Add support for widening loads/stores to a VF multiple (PR #217670)
Benjamin Maxwell via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 15 03:51:39 PDT 2026
================
@@ -5754,6 +5754,8 @@ DenseMap<const SCEV *, Value *> LoopVectorizationPlanner::executePlan(
*PSE.getSE(), TTI, Config.CostKind, BestVF, BestUF);
// TODO: Move to VPlan transform stage once the transition to the VPlan-based
// cost model is complete for better cost estimates.
+ RUN_VPLAN_PASS(VPlanTransforms::scaleMemoryAccessesByUF, BestVPlan, BestVF,
----------------
MacDue wrote:
I've split the hook into `get[Maximum|Preferred]VFMultipleForMemoryOp` hooks, so the former can be used to skip the transform when it's one.
https://github.com/llvm/llvm-project/pull/217670
More information about the llvm-commits
mailing list