InstCombine: Fold negations of is_fpclass intrinsics
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 17 Nov 2022 05:26:29 +0000 (21:26 -0800)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 13 Dec 2022 13:06:19 +0000 (08:06 -0500)
commit19d428f717e773d9c74f5a8452c68c1bb56fc6f0
tree219430a6ba69120afca40098377fe5d1cab03a5e
parentb7232dafe69eb04c1421743e4bd779d6ff3853be
InstCombine: Fold negations of is_fpclass intrinsics

Can invert the result by inverting the test mask.
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
llvm/test/Transforms/InstCombine/is_fpclass.ll