[Mlir-commits] [mlir] [MLIR][Linalg] Fix segfault when an out operand is yielded by a nested op (PR #216977)

Chibuoyim Ogbonna llvmlistbot at llvm.org
Thu Aug 20 02:48:01 PDT 2026


bruteforceboy wrote:

> > Segfaults when run with `mlir-opt --linalg-fuse-elementwise-ops`
> 
> Is it when running pass `--linalg-fuse-elementwise-ops`, `test-erase-unnecessary-inputs` as in the test or [transform.apply_patterns.linalg.erase_unnecessary_inputs](https://mlir.llvm.org/docs/Dialects/Transform/#transformapply_patternslinalgerase_unnecessary_inputs-transformapplyeraseunnecessaryinputspatternsop) which seems to relate more to this issue ?

Thanks for the review! The crash from the issue used `--linalg-fuse-elementwise-ops`, which is why I used that in my description. The main trigger here is `test-linalg-transform-patterns=test-erase-unused-operands-and-results`, which fuse elementwise ops pulls in, resulting in the crash. That's the reason for the test file choice.

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


More information about the Mlir-commits mailing list