[llvm] [LV] Factor costInterleaveGatherScatter (NFC) (PR #215857)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 7 04:37:36 PDT 2026
================
@@ -4416,50 +4485,13 @@ void LoopVectorizationCostModel::setCostBasedWideningDecision(ElementCount VF) {
if (!Ptr)
continue;
+ // Choose between Interleaving, Gather/Scatter or Scalarization.
+ auto [Decision, Cost] = costInterleaveGatherScatter(&I, VF);
----------------
lukel97 wrote:
This is hoisted outside of isUniformMemOp so it will run more often now I think. Can we sink it?
https://github.com/llvm/llvm-project/pull/215857
More information about the llvm-commits
mailing list