[Mlir-commits] [mlir] [mlir][tensor] Implement constant folder for tensor.pad (PR #92691)

Spenser Bauman llvmlistbot at llvm.org
Sun May 19 12:12:14 PDT 2024


sabauma 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.

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


More information about the Mlir-commits mailing list