[Mlir-commits] [mlir] [mlir][linalg] Add pattern to clean unused results after fusion (PR #158627)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Sep 19 09:13:14 PDT 2025
MaheshRavishankar wrote:
> After fusion, there are cases where the **payload still reads that tied block-arg to build another live result**, but the corresponding result is unused. In that situation **the pattern doesn’t fire**; the op retains the outs[i]/result pair, which prevents further fusion and harms readability.
Yeah, I thought that might be what you are trying to fix, but I think the input is wrong, and the semantics of the input is unclear, so any transformation on those kind of operations is sketchy.
https://github.com/llvm/llvm-project/pull/158627
More information about the Mlir-commits
mailing list