[InstCombine] foldOrOfICmps - only fold (icmp_eq B, 0) | (icmp_ult/gt A, B) for integ...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 19 Oct 2020 16:05:38 +0000 (17:05 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 19 Oct 2020 16:05:38 +0000 (17:05 +0100)
commitadb52e5f9e66e726a8175bb0025ed3553cc1534e
tree8e85032767009b219be58a18d89830b6f9c32c8e
parentd454328ea88562a6ec6260529a040035ab9c4a06
[InstCombine] foldOrOfICmps - only fold (icmp_eq B, 0) | (icmp_ult/gt A, B) for integer types

Fixes a number of stage2 buildbots that were failing when I generalized the m_ConstantInt() logic - that didn't match for pointer types but m_Zero() does......
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp