[Mlir-commits] [mlir] [mlir][tensor] Implement constant folder for tensor.pad (PR #92691)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Jun 5 10:13:10 PDT 2024
MaheshRavishankar wrote:
> @joker-eph @MaheshRavishankar Fair enough. This definitely falls into that particular category of constant folding operation. I was modeling this on some of the folders from TOSA, but I know there are concerns with how they can bloat the IR/context.
>
> Is the preference to not have patterns like this at all? This change does not add the new pattern to the `tensor.pad` canonicalizers, so it is opt-in and could be parameterized by a cost function.
Is it parameterized by a cost function? I dont see that in the code.
https://github.com/llvm/llvm-project/pull/92691
More information about the Mlir-commits
mailing list