[llvm] [LoadStoreVectorizer] Support vectorization of mixed-type contiguous accesses (PR #177908)

Anshil Gandhi via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 14 10:53:31 PDT 2026


================
@@ -298,6 +293,24 @@ class Vectorizer {
   /// Discards any length-1 subchains.
   std::vector<Chain> splitChainByAlignment(Chain &C);
 
+  /// Splits out pointer-typed elements whose scalar size exceeds the GCD
+  /// element size of the chain, so that pointers are never vectorized at a
+  /// width smaller than their native size. Non-pointer elements and pointers
+  /// whose size matches the GCD remain in the main chain.
+  std::vector<Chain> splitChainByPointerWidth(Chain &C);
----------------
gandhi56 wrote:

Should I create an issue for this and implement it in a separate PR?

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


More information about the llvm-commits mailing list