[llvm] [LV] Factor costInterleaveGatherScatter (NFC) (PR #215857)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 7 07:02:42 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);
----------------
artagnon wrote:
Ah, but the later hunk runs it unconditionally anyway, and we're simply sharing the conditional and unconditional calls?
https://github.com/llvm/llvm-project/pull/215857
More information about the llvm-commits
mailing list