InstCombine: Try to turn is.fpclass sign checks to fcmp with 0
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Sun, 23 Apr 2023 02:05:23 +0000 (22:05 -0400)
committerMatt Arsenault <arsenm2@gmail.com>
Tue, 16 May 2023 19:42:58 +0000 (20:42 +0100)
commite09115bcfdeb295c943773abfa2b29ff4e2dba11
tree4dbcb8f956e8b86d7ecb821aec429b472bcb8b72
parente03200164be0d7cc2e8514e98548fe309b0829d0
InstCombine: Try to turn is.fpclass sign checks to fcmp with 0

Try to use gt/lt compares with 0 instead of class.
llvm/include/llvm/IR/InstrTypes.h
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
llvm/test/Transforms/InstCombine/is_fpclass.ll