[llvm] [LoadStoreVectorizer] Propagate alignment through contiguous chain (PR #145733)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 10 08:15:58 PDT 2025


================
@@ -0,0 +1,450 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
+; RUN: opt -passes=load-store-vectorizer -S < %s | FileCheck %s
+
+; The IR has the first float3 labeled with align 16, and that 16 should
+; be propagated such that the second set of 4 values
+; can also be vectorized together.
----------------
nikic wrote:

We have an InferAlignments pass which is supposed to improve alignment information on loads and stores. However, it currently works only via base object alignment (i.e. align attributes, or aligned identified objects). It does not try to propagate alignment information from existing load/store alignment.

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


More information about the llvm-commits mailing list