[Mlir-commits] [mlir] [mlir][x86] Add extra patterns for AMX nano-kernel lowering (acc with zero constant) (PR #222513)
Adam Siemieniuk
llvmlistbot at llvm.org
Mon Sep 14 02:19:21 PDT 2026
================
@@ -1124,6 +1146,14 @@ struct VectorContractToAMXDotProduct
"the re-write conditions either the dimensions are "
"wrong or MemRef source are different or many users.");
+ Operation *contractReadOp =
+ traceToVectorReadLikeParentOperation(contract.getAcc());
+
+ if (isAccZeroVectorConstant != isZeroVectorConstant(contractReadOp))
----------------
adam-smnk wrote:
Does init value really matter?
I think I should be able to perform compute regardless of underlying values if other layout conditions are satisfied.
https://github.com/llvm/llvm-project/pull/222513
More information about the Mlir-commits
mailing list