[Mlir-commits] [mlir] [mlir] [arith] Fold trunc(extremum(ext(lhs), ext(rhs))) (PR #214658)

Mehdi Amini llvmlistbot at llvm.org
Mon Aug 10 04:46:21 PDT 2026


https://github.com/joker-eph approved this pull request.

Patch LGTM for the cases it handles.

I would add some comment in the pattern documentation that this is only valid for some `ExtremumOp`, any operation that has some intermediate results internally would likely not behave the same on lower precision.

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


More information about the Mlir-commits mailing list