[InstCombine] add tests for select to logic folds; NFC
authorSanjay Patel <spatel@rotateright.com>
Wed, 25 Apr 2018 15:59:23 +0000 (15:59 +0000)
committerSanjay Patel <spatel@rotateright.com>
Wed, 25 Apr 2018 15:59:23 +0000 (15:59 +0000)
commit0387ceb67af096e55b21d31dca13325201589b52
tree3e293c89f9fa024516baead458703c7a25354786
parentcbf20ef6abd50cd31744e97d450ebf00976d110b
[InstCombine] add tests for select to logic folds; NFC

As discussed in D45862, we want these folds sometimes
because they're good improvements.
But as we can see here, the current logic doesn't
check uses and doesn't produce optimal code in all
cases.

llvm-svn: 330837
llvm/test/Transforms/InstCombine/select-icmp-and.ll