[Mlir-commits] [mlir] [mlir][vector] Propagate alignment in LowerVectorGather. (PR #155683)

Erick Ochoa Lopez llvmlistbot at llvm.org
Fri Sep 5 06:35:03 PDT 2025


================
@@ -100,6 +100,18 @@ func.func @scalable_gather_memref_2d(%base: memref<?x?xf32>, %v: vector<2x[3]xin
  return %0 : vector<2x[3]xf32>
 }
 
+// CHECK-LABEL: @scalable_gather_with_alignment
+// CHECK:         vector.gather
+// CHECK-SAME:    {alignment = 8 : i64}
+// CHECK:         vector.gather
+// CHECK-SAME:    {alignment = 8 : i64}
+func.func @scalable_gather_with_alignment(%base: memref<?x?xf32>, %v: vector<2x[3]xindex>, %mask: vector<2x[3]xi1>, %pass_thru: vector<2x[3]xf32>) -> vector<2x[3]xf32> {
----------------
amd-eochoalo wrote:

Thanks for the review :) https://github.com/llvm/llvm-project/pull/155683/commits/ea8b28f6ccb35cc715fc8d8240e05177e8de8c03

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


More information about the Mlir-commits mailing list