[Mlir-commits] [mlir] [mlir][linalg][elementwise] Fold transpose into new elementwise (PR #130207)
Javed Absar
llvmlistbot at llvm.org
Sat Mar 8 14:10:29 PST 2025
================
@@ -4285,6 +4286,47 @@ Speculation::Speculatability ElementwiseOp::getSpeculatability() {
return getGenericSpeculatabilityImpl(cast<LinalgOp>(getOperation()));
}
+namespace {
+struct FoldTranspose : public OpRewritePattern<ElementwiseOp> {
----------------
javedabsar1 wrote:
For broadcast - 'Would be nice to do the same for broadcast.' Yes i wanted to save myself time to see what form for transpose works for you folks.
https://github.com/llvm/llvm-project/pull/130207
More information about the Mlir-commits
mailing list