[llvm] WIP:[LV] Support strided memory accesses with a stride of -1 (PR #128718)
    Alexey Bataev via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Feb 27 08:57:44 PST 2025
    
    
  
================
@@ -1308,6 +1309,18 @@ class LoopVectorizationCostModel {
            (SI && TTI.isLegalMaskedScatter(Ty, Align));
   }
 
+  /// Returns true if the target machine can represent \p V as a strided load
+  /// or store operation.
+  bool isLegalStridedLoadStore(Value *V, ElementCount VF) {
----------------
alexey-bataev wrote:
I think better to have the format of the function, similar to isLegalGatherOrScatter, isLegalMaskedLoad etc.
https://github.com/llvm/llvm-project/pull/128718
    
    
More information about the llvm-commits
mailing list