[Mlir-commits] [mlir] [mlir][linalg]Implement canonicalizer for `BroadCastOp` on tensors (PR #80466)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Feb 2 17:25:31 PST 2024
================
@@ -1907,6 +1907,20 @@ void BroadcastOp::getEffects(
getDpsInits());
}
+LogicalResult BroadcastOp::canonicalize(BroadcastOp op,
----------------
srcarroll wrote:
I took a crack at it. First I tried to do an `OpInterfaceRewriterPatter<LinalgOp>` but that ended up overriding all other linalg op's canonicalizers. So i opted for a templated rewrite
https://github.com/llvm/llvm-project/pull/80466
More information about the Mlir-commits
mailing list