[InstCombine] fold test of equality to 0.0 with bitcast operand
authorSanjay Patel <spatel@rotateright.com>
Fri, 26 Aug 2022 15:15:09 +0000 (11:15 -0400)
committerSanjay Patel <spatel@rotateright.com>
Fri, 26 Aug 2022 17:46:11 +0000 (13:46 -0400)
commit482777123427622f15837cdbda97080798f6cc85
treed7f129eeb2a6462e99099a0b1f9ea99a6b8df106
parent88d756507b336df379c6cdb3c48147ddb9ca0ee0
[InstCombine] fold test of equality to 0.0 with bitcast operand

fcmp oeq/une (bitcast X), 0.0 --> (and X, SignMaskC) ==/!= 0
https://alive2.llvm.org/ce/z/ZKATGN
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
llvm/test/Transforms/InstCombine/fcmp.ll