[Mlir-commits] [mlir] [mlir][linalg][elementwise] Fold transpose into new elementwise (PR #130207)
Renato Golin
llvmlistbot at llvm.org
Fri Mar 7 03:33:26 PST 2025
================
@@ -4285,6 +4286,47 @@ Speculation::Speculatability ElementwiseOp::getSpeculatability() {
return getGenericSpeculatabilityImpl(cast<LinalgOp>(getOperation()));
}
+namespace {
+struct FoldTranspose : public OpRewritePattern<ElementwiseOp> {
----------------
rengolin wrote:
Would be nice to do the same for broadcast.
https://github.com/llvm/llvm-project/pull/130207
More information about the Mlir-commits
mailing list