[Mlir-commits] [mlir] [mlir][linalg]Implement canonicalizer for `BroadCastOp` on tensors (PR #80466)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Feb 2 16:16:30 PST 2024


================
@@ -1907,6 +1907,20 @@ void BroadcastOp::getEffects(
                         getDpsInits());
 }
 
+LogicalResult BroadcastOp::canonicalize(BroadcastOp op,
----------------
srcarroll wrote:

The only thing i can think of is just to have this, but still require ops to add their own canonicalizer at which point can reuse this same pattern

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


More information about the Mlir-commits mailing list