[llvm] [InterleavedAccess] Construct interleaved access store with shuffles (PR #164000)

Ehsan Amiri via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 22 07:02:50 PDT 2025


================
@@ -3206,6 +3206,11 @@ class LLVM_ABI TargetLoweringBase {
   /// Default to be the minimum interleave factor: 2.
   virtual unsigned getMaxSupportedInterleaveFactor() const { return 2; }
 
+  /// Return true if the target can interleave data with shuffles.
+  virtual bool isProfitableToInterleaveWithGatherScatter() const {
+    return false;
+  }
+
----------------
amehsan wrote:

Does this function implement the cost model or just indicates availability of the instruction? The name sounds like it is a cost model. The simple implementatoin and the comment sounds like it indicates availability of the functionality.

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


More information about the llvm-commits mailing list