[InstCombine] Add (icmp ne A, 0) | (icmp ne B, 0) --> (icmp ne (A|B), 0) vector support
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 19 Oct 2020 14:41:07 +0000 (15:41 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 19 Oct 2020 14:41:21 +0000 (15:41 +0100)
commitde885f1b2abe7fd26c22bbb551d1dc86a87e6dff
tree734156f3885d25ec9af25d46e563f32c08103fa4
parentb91a236ee1c3e9fa068df058164385732cb46bba
[InstCombine] Add (icmp ne A, 0) | (icmp ne B, 0) --> (icmp ne (A|B), 0) vector support

Scalar cases were already being handled by foldLogOpOfMaskedICmps (so this was dead code), but refactoring to support non-uniform vectors will take some time, so tweak this fold in the meantime.
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
llvm/test/Transforms/InstCombine/icmp.ll