[Mlir-commits] [mlir] [mlir][linalg] Extend `FuseElementwiseOps` pattern to work with named ops (PR #144922)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Nov 7 09:38:52 PST 2025


srcarroll wrote:

@MaheshRavishankar https://github.com/llvm/llvm-project/pull/144922/commits/a3bba1a1285f624cfc858afd65015f9a45a6cd32 . I'm not planning on using `fuseElementwiseGenericOps` in builtin passes. This is purely for downstream users, per your request, to retain previous functionality.  Since `fuseElementwiseGenericOps` is effectively a subset of `fuseElementwiseLinalgOps`, it should suffice to test with the latter.

I've noted that `fuseElementwiseGenericOps` should be deprecated in favor of `fuseElementwiseLinalgOps`, because I still firmly believe there is no long term utility to having both.  I'm making a compromise purely to make the transition smoother for downstream users.  I hope this will alleviate your concerns.

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


More information about the Mlir-commits mailing list