[llvm] [LoadStoreVectorizer] Fill gaps in load/store chains to enable vectorization (PR #159388)

Drew Kersnar via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 5 08:40:14 PST 2025


================
@@ -864,6 +1033,15 @@ bool Vectorizer::vectorizeChain(Chain &C) {
   if (C.size() < 2)
     return false;
 
+  // If we are left with a two-element chain, and one of the elements is an
+  // extra element, we don't want to vectorize
+  if (C.size() == 2 &&
----------------
dakersnar wrote:

Good catch, thanks!

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


More information about the llvm-commits mailing list