revert rL344609: [InstCombine] try harder to form select from logic ops
authorSanjay Patel <spatel@rotateright.com>
Tue, 16 Oct 2018 15:26:08 +0000 (15:26 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 16 Oct 2018 15:26:08 +0000 (15:26 +0000)
commitbb3dd34e62d2b53402a84d9d8b2a3c865fdf43fd
treec33540c41aa41bdabc6005a25cddfe2b33a1608b
parent29270717502afeebd584f393f4182f26ae5f4536
revert rL344609: [InstCombine] try harder to form select from logic ops

I noticed a missing check and added it at rL344610, but there actually
are codegen tests that will fail without that, so I'll edit those and
submit a fixed patch with more tests.

llvm-svn: 344612
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
llvm/lib/Transforms/InstCombine/InstCombineInternal.h
llvm/test/Transforms/InstCombine/logical-select.ll
llvm/test/Transforms/InstCombine/vec_sext.ll