[llvm] [ValueTracking] Fix signed zero handling in minnum/maxnum matching (PR #210077)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 16 08:00:40 PDT 2026


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

----------------
nikic wrote:

This is an example of the miscompile: If `%in == -0.0` then `fcmp olt -0.0, 0.0` is false and we select `%in`, which is `-0.0`. But fmaxnm will return 0.0 instead.

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


More information about the llvm-commits mailing list