[X86] combineOr - don't demand operand elements if the other operand element is ...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 14 Dec 2021 14:52:38 +0000 (14:52 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 14 Dec 2021 15:36:33 +0000 (15:36 +0000)
commit4f2e183229b8a9ce3c9b3d8c43b5bc7c985540eb
tree73a5dc290c643c66b5a30e13c98df3dfa87af499
parenta9d811405f887fbc438154047aaa7954ad99a19e
[X86] combineOr - don't demand operand elements if the other operand element is 'allones'

If either operand has an element with allbits set, then we don't need the equivalent element from the other operand, as allbits are guaranteed to be set.
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/setcc-lowering.ll
llvm/test/CodeGen/X86/vshift-6.ll