[llvm] [LV][EVL] Generate negative strided load/store for reversed load/store (PR #123608)

Pengcheng Wang via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 23 23:46:31 PST 2025


================
@@ -1776,6 +1776,10 @@ class TargetTransformInfo {
   /// otherwise scalar epilogue loop.
   bool preferEpilogueVectorization() const;
 
+  /// Return true if the loop vectorizer prefer strided load/store when
+  /// vectorizing reversed load/store.
+  bool preferStridedLoadStore() const;
----------------
wangpc-pp wrote:

Is that a possible μ-arch? If unit load/store+vrgather can be optimized/fused, why can't we optimize strided load/store as well?

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


More information about the llvm-commits mailing list