https://github.com/hanhanW commented: Nice! We also hit a similar issue in data layout propagation. It seems better to reuse the dest tensor. https://github.com/llvm/llvm-project/commit/536486fb4f45bffc2f4de5ae13e0cd825e8178a9 https://github.com/llvm/llvm-project/pull/108025