[Mlir-commits] [mlir] [mlir][linalg] fix specialization of transposed matmul variants (PR #181387)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Feb 13 12:09:27 PST 2026


================
@@ -314,6 +314,73 @@ func.func @negative_op_multi_reduction(%A: tensor<10x20x30xf32>,
 
 // -----
 
+// Both A and B transposed: no named op variant exists for this combination.
+#mapABt0 = affine_map<(d0, d1, d2) -> (d2, d0)>
+#mapABt1 = affine_map<(d0, d1, d2) -> (d1, d2)>
+#mapABt2 = affine_map<(d0, d1, d2) -> (d0, d1)>
+func.func @negative_matmul_transpose_a_and_b(%A: tensor<?x?xf32>, %B: tensor<?x?xf32>,
----------------
ziereis wrote:

i think there is one check i could remove  in `mlir/lib/Dialect/Linalg/Transforms/Specialize.cpp:296` and this could also be specialized to linalg.matmul if this is expected behavior? 

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


More information about the Mlir-commits mailing list