[NFC][InstCombine] Add xor-or-icmp tests with icmp having extra uses
authorRoman Lebedev <lebedev.ri@gmail.com>
Wed, 31 Jul 2019 15:20:33 +0000 (15:20 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Wed, 31 Jul 2019 15:20:33 +0000 (15:20 +0000)
commit8d76284599c4bc995c037b524b107ee0e902dcdb
tree6257bcaa68d6c890157028ecb24a95fac784be79
parent67688af5f06e2838b3e73d53ded787fefcc40787
[NFC][InstCombine] Add xor-or-icmp tests with icmp having extra uses

Currently InstCombiner::foldXorOfICmps() bailouts if the
ICMP it wants to invert has extra uses. As it can be seen
in the tests in previous commit, this is super unfortunate,
this is the single pattern that is left non-canonicalized.

We could analyze if we can also invert all the uses if said ICMP
at the same time, thus not bailing out there.
I'm not seeing any nicer alternative.

llvm-svn: 367439
llvm/test/Transforms/InstCombine/xor-of-icmps-with-extra-uses.ll [new file with mode: 0644]