[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:41:34 PDT 2023
foad added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp:889-892
+ // is.fpclass(x, ~fcPosInf) -> fcmp one x, +inf
+ // is.fpclass(x, ~fcNegInf) -> fcmp one x, -inf
+ // is.fpclass(x, ~fcPosInf|fcNan) -> fcmp une x, +inf
+ // is.fpclass(x, ~fcNegInf|fcNan) -> fcmp une x, -inf
----------------
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146170/new/
https://reviews.llvm.org/D146170
More information about the llvm-commits
mailing list