[Mlir-commits] [mlir] [mlir][linalg] Skip rank reduction for unsigned-cast contractions (PR #225993)

Federico Bruzzone llvmlistbot at llvm.org
Fri Sep 25 00:28:27 PDT 2026


================
@@ -175,6 +175,99 @@ func.func @batch_matmul_to_vecmat(%arg0: memref<1x1x?xf32>, %arg1: memref<1x?x?x
 
 // -----
 
+// linalg.vecmat has no cast attribute (it always uses signed casts), so a
+// matmul with an unsigned cast must not be rank-reduced into it.
----------------
FedericoBruzzone wrote:

Is this a foundational limitation, or is it just not implemented yet? I'm curious :D

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


More information about the Mlir-commits mailing list