[X86] Add a hack to combineVSelectWithAllOnesOrZeros to turn selects with two zero...
authorCraig Topper <craig.topper@intel.com>
Sun, 8 Sep 2019 20:56:09 +0000 (20:56 +0000)
committerCraig Topper <craig.topper@intel.com>
Sun, 8 Sep 2019 20:56:09 +0000 (20:56 +0000)
commit77dd86ee4aaed1ffeedf18c7b8a862c465f415f9
tree1147b8cc7289d50a3192450ba6dc1e176526a50a
parent9c119012566c1272c6be2c1b141d6443d67cbc88
[X86] Add a hack to combineVSelectWithAllOnesOrZeros to turn selects with two zero/undef vector inputs into an all zeroes vector.

If the two zero vectors have undefs in different places they
won't get combined by simplifySelect.

This fixes a regression from an earlier commit.

llvm-svn: 371351
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/avx512-vec-cmp.ll