[PATCH] D139785: [InstCombine] preserve signbit semantics of NAN with fold to fabs

Nuno Lopes via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 11 09:10:51 PST 2022


nlopes added a comment.

In D139785#3986910 <https://reviews.llvm.org/D139785#3986910>, @RalfJung wrote:

> The actual issue is that `X > 0.0` is `false` for negative NaNs

Comparisons don't look at the sign of NaN. They are not bitwise operations like fabs/fneg.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D139785/new/

https://reviews.llvm.org/D139785



More information about the llvm-commits mailing list