[llvm] [CodeGen] Expand unsupported (de)interleave intrinsics (PR #207439)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 5 12:25:00 PDT 2026


================
@@ -3301,6 +3300,13 @@ class LLVM_ABI TargetLoweringBase {
   /// Default to be the minimum interleave factor: 2.
   virtual unsigned getMaxSupportedInterleaveFactor() const { return 2; }
 
+  /// Return true if a fixed-length VECTOR_INTERLEAVE / VECTOR_DEINTERLEAVE
+  /// should be expanded to a shufflevector sequence.
+  virtual bool shouldExpandVectorInterleaveToShuffle(unsigned Factor,
----------------
arsenm wrote:

Should try to avoid adding a new hook. And if it's really needed it should be in terms of what's supported or not, not prescribing a vague action 

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


More information about the llvm-commits mailing list