[InstCombine] add shift+logic tests (PR37098); NFC
authorSanjay Patel <spatel@rotateright.com>
Sat, 14 Apr 2018 13:39:02 +0000 (13:39 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sat, 14 Apr 2018 13:39:02 +0000 (13:39 +0000)
commit713f09d0149bc62919fd93d013c477db096885b6
tree9b453c4028132b4bce51ab60fadd7aa18a30ff41
parentb8adf558f875f208e6f08b6947d8708c8f3dde0d
[InstCombine] add shift+logic tests (PR37098); NFC

It debateable whether instcombine should be in the business of
reassociation, but it is currently.

These tests and PR37098 demonstrate a missing ability to do a
simple reassociation that allows eliminating shifts.

If we decide that functionality belongs somewhere else, then we
should still have some tests to show that we've intentionally
limited instcombine to *not* include this ability.

llvm-svn: 330086
llvm/test/Transforms/InstCombine/and-xor-or.ll