[Mlir-commits] [mlir] [mlir][tensor] Rewrite tensor.pack as a constant (PR #93954)

Spenser Bauman llvmlistbot at llvm.org
Fri May 31 10:11:45 PDT 2024


sabauma wrote:

@adam-smnk We've wanted something similar to this (fold away tensor.pack), but opted to improve the folding of `linalg.transpose` (https://github.com/llvm/llvm-project/pull/92589) and add a rewrite for `tensor.pad` here (https://github.com/llvm/llvm-project/pull/92691). This works out since `tensor.pack` lowers to a transpose + pad sequence. Maybe that would be sufficient to suit your use case?

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


More information about the Mlir-commits mailing list