[Mlir-commits] [mlir] [mlir][linalg] Fix getSourceSkipUnary to only skip cast-like ops (PR #198725)

Hocky Yudhiono llvmlistbot at llvm.org
Wed May 27 01:30:20 PDT 2026


hockyy wrote:

> I'd go as far as saying that we only recognize the patterns that the default lowering produces, and let up to canonicalization of casts to move whatever you have into those patterns, or they won't be specialized.

Cool with the keeping specialization conservative, but making the global matcher only accept default-lowering shapes would likely cause broad behavior/test regressions (?)

Thinking of using `UnaryFnSkipPolicy` or something similar. use `None` or `CastOnly` or `SkipAll`.


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


More information about the Mlir-commits mailing list