[InstCombine] add tests for xor-or-xor fold; NFC
authorSanjay Patel <spatel@rotateright.com>
Tue, 4 Sep 2018 22:10:23 +0000 (22:10 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 4 Sep 2018 22:10:23 +0000 (22:10 +0000)
commit5bbe8cd7ef9786a2cfe545dcb6b626fed7b381ca
tree3dbaaf54571f97b1e0ce0b2a4dd4268edf1f189a
parentcfab8b4b765c3c50ac9ce06054dbe109e73d336c
[InstCombine] add tests for xor-or-xor fold; NFC

There are 2 bugs shown here that were untested before:
1. We fail to perform the fold in 1/2 the possible commuted variants.
2. When the fold is done, it disregards extra uses.

llvm-svn: 341415
llvm/test/Transforms/InstCombine/xor2.ll