[Mlir-commits] [mlir] [mlir][vector] Recompute load/store alignment when the index moves (PR #221385)

Hung-Kuan Tseng llvmlistbot at llvm.org
Sun Nov 1 05:31:58 PST 2026


================
@@ -217,6 +218,15 @@ struct MaskableOpRewritePattern : OpRewritePattern<SourceOp> {
 /// are not linearizable.
 bool isLinearizableVector(VectorType type);
 
+/// Returns the alignment of an access to `memRefType` at `indices + offsets`,
+/// given that the access at `indices` is aligned to `alignment`. `offsets`
+/// apply to the trailing dimensions of the memref. Returns an empty alignment
+/// when `alignment` is empty, or when the byte distance between the two
+/// accesses is not static.
----------------
Tim096 wrote:

Yes, elements. Stated in the comment now.

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


More information about the Mlir-commits mailing list