[llvm] [LV] Factor costInterleaveGatherScatter (NFC) (PR #215857)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 7 07:02:43 PDT 2026


================
@@ -2400,6 +2456,13 @@ bool LoopVectorizationCostModel::isLegalMaskedLoadOrStore(
                                          getLoadStoreAddressSpace(I));
 }
 
+bool LoopVectorizationCostModel::isLegalGatherOrScatter(Instruction *I,
----------------
artagnon wrote:

Perhaps better to keep that discussion on the follow-up patch? Yes, a lot more work is required to switch to VPlan-based costing for gather-scatters?

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


More information about the llvm-commits mailing list