[Mlir-commits] [mlir] [mlir][memref] Add HoistCastPos pattern to castOp (PR #168337)

Mehdi Amini llvmlistbot at llvm.org
Tue Nov 18 05:22:19 PST 2025


joker-eph wrote:

We could consider that "cast are canonicalized to be closest to their definition" or something like that, but:

1) I'm not entirely sure about this one: what makes cast "special" with this property? Why not other ops? This likely requires more opinions here.
2) You're only achieving this partially (only if in a different block).


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


More information about the Mlir-commits mailing list