[Mlir-commits] [mlir] [mlir][x86] Add extra patterns for AMX nano-kernel lowering (acc with zero constant) (PR #222513)
Julian Oppermann
llvmlistbot at llvm.org
Wed Sep 30 05:10:39 PDT 2026
================
@@ -1418,22 +1446,20 @@ struct VectorContractToAMXDotProduct
Value srcBuffAcc;
SmallVector<Value> indicesAcc;
- llvm::TypeSwitch<Operation *>(accReadOp).Case<TransferReadOp, LoadOp>(
- [&](auto readOp) {
- srcBuffAcc = readOp.getOperand(0);
+ llvm::TypeSwitch<Operation *>(accWrite)
+ .Case<vector::TransferWriteOp, vector::StoreOp>([&](auto writeOp) {
+ srcBuffAcc = writeOp->getOperand(1);
----------------
jopperm wrote:
Ok, I can work with that, but please consider doing this in a follow-up PR, as currently it contradicts #215459 for the zero-init case.
https://github.com/llvm/llvm-project/pull/222513
More information about the Mlir-commits
mailing list