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

Renato Golin llvmlistbot at llvm.org
Sat Feb 14 06:15:54 PST 2026


================
@@ -147,9 +147,15 @@ static LinalgOp replaceWithMatmulVariant(RewriterBase &rewriter, GenericOp op,
     castAttrVec = {rewriter.getNamedAttr(
         "cast", TypeFnAttr::get(rewriter.getContext(), *castTy))};
 
+  ArrayAttr indexingMaps = op.getIndexingMaps();
----------------
rengolin wrote:

Not sure what you mean. If the maps were checked to be projected permutation, then the destination `matmul` should be able to take it, and therefore this would be correct? Maybe I'm oversimplifying?

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


More information about the Mlir-commits mailing list