[llvm] [InstCombine] Fold `fcmp (fmul X, C1), C2` to `fcmp X, C2/C1` (PR #205003)

via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 11 11:24:04 PDT 2026


================

----------------
VachanVY wrote:

> ConstantFoldBinaryOpOperands(fdiv) ignores inexact status. I'd suggest only handling scalars and vector splats. Then we can use the result of APFloat::divide to filter out inexact divisions.

Done

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


More information about the llvm-commits mailing list