[llvm] [SandboxVec][SeedCollector] Implement collection of seeds with different types (PR #146171)

via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 19 06:32:30 PDT 2025


================
@@ -191,7 +191,8 @@ class SeedContainer {
 
   ScalarEvolution &SE;
 
-  template <typename LoadOrStoreT> KeyT getKey(LoadOrStoreT *LSI) const;
+  template <typename LoadOrStoreT>
+  KeyT getKey(LoadOrStoreT *LSI, bool AllowDiffTypes) const;
----------------
vporpo wrote:

Allowing different types is only beneficial for very specific (and limited) vectorization patterns, like load-store pairs of different types. In the general case we can't really vectorize instructions of different types unless we legally convert them into the same type. So allowing different types is not always desired, which is why we have this as an option.

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


More information about the llvm-commits mailing list