[PATCH] D139130: InstCombine: Fold and (fcmp), (is.fpclass) into is.fpclass
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 7 01:53:20 PST 2023
foad accepted this revision.
foad added a comment.
This revision is now accepted and ready to land.
LGTM with comment fixes
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp:1310-1313
+ // fcmp one x, -inf -> is_fpclass x, fcNegInf
+ // fcmp one fabs(x), -inf -> is_fpclass x, ~fcNegInf & ~fcNan
+ // fcmp one x, +inf -> is_fpclass x, ~fcNegInf & ~fcNan
+ // fcmp one fabs(x), +inf -> is_fpclass x, ~fcInf & fcNan
----------------
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp:1339
+ // fcmp uge fabs(x), +inf -> ~fcFinite
+ // fcmp olt x, +inf -> fcNegInf|fcSubnormal|fcNormal|fcZero
+ // fcmp uge x, +inf -> ~(fcFinite|fcNegInf)
----------------
Simplify like the line below
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139130/new/
https://reviews.llvm.org/D139130
More information about the llvm-commits
mailing list