[llvm] [SLP] Use costing to decide between Strided Loads and Compressed Loads (PR #226540)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 2 12:00:29 PDT 2026


================
@@ -14917,6 +14819,62 @@ void BoUpSLP::transformNodes() {
     }
   }
 
+  // Perform transformations that modify nodes in-place last.
----------------
alexey-bataev wrote:

Outline this to a function, like `void BoUpSLP::convertCompressedLoadToStrided(TreeEntry &E)` and use
```
  llvm::scope_exit PreferStridedLoads([&] {
    for (std::unique_ptr<TreeEntry> &E : VectorizableTree)
      if (E->State == TreeEntry::CompressVectorize)
        convertCompressedLoadToStrided(*E);
  });
```
 to process such nodes

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


More information about the llvm-commits mailing list