[Mlir-commits] [mlir] [mlir][tensor] add tensor insert/extract op folders (PR #142458)
Mehdi Amini
llvmlistbot at llvm.org
Tue Jun 3 10:13:01 PDT 2025
joker-eph wrote:
I have some concerns about folders in the tensor dialect, in particular:
> tensor.insert folder: insert into a constant is replaced with a new constant
This kind of folders can quickly lead to a size explosion because of the nature of tensor constants which can be pretty large.
I believe we shied away from these folders so far in the absence of good cost model and relied on heuristics in canonicalizer to restrict these to "small" tensors.
https://github.com/llvm/llvm-project/pull/142458
More information about the Mlir-commits
mailing list