[PATCH] D146170: InstCombine: Fold is.fpclass for single infinity to fcmp
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 17 02:39:46 PDT 2023
foad added a comment.
>From the description:
> llvm.is.fpclass(x, fcPosInf) -> fcmp oeq x, +inf
> llvm.is.fpclass(x, fcNegInf) -> fcmp oeq x, -inf
> llvm.is.fpclass(x, ~fcPosInf) -> fcmp one x, +inf
> llvm.is.fpclass(x, ~fcNegInf) -> fcmp one x, -inf
The last two should be "une".
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146170/new/
https://reviews.llvm.org/D146170
More information about the llvm-commits
mailing list