[Mlir-commits] [mlir] [mlir][tensor] Rewrite tensor.pack as a constant (PR #93954)
Adam Siemieniuk
llvmlistbot at llvm.org
Fri Jun 7 03:16:58 PDT 2024
adam-smnk wrote:
@sabauma Thanks for the pointers. The Linalg constant folders are indeed sufficient.
I recreated this `tensor.pack` rewrite functionality by temporarily lowering constant packs, and then running constant folding and canonicalization patterns. Now only the op selection is custom and the rest is powered by upstream logic.
For reference, the implementation: https://github.com/plaidml/tpp-mlir/pull/921
Then I think we can close this PR to avoid duplicating functionality.
https://github.com/llvm/llvm-project/pull/93954
More information about the Mlir-commits
mailing list