[SelectionDAG] Support some SimplifySetCC cases for comparing against vector splats...
authorCraig Topper <craig.topper@intel.com>
Thu, 1 Mar 2018 22:15:39 +0000 (22:15 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 1 Mar 2018 22:15:39 +0000 (22:15 +0000)
commiteedfbc4ab7df2b9ddeb0674e8ef75c3cac550384
tree8ebbc8860e4b6ab916701a0811f56702a1249b14
parente57167fab6b46b042e5a90c834c4835222722e25
[SelectionDAG] Support some SimplifySetCC cases for comparing against vector splats of constants.

This supports things like

(setcc ugt X, 0) -> (setcc ne X, 0)

I've restricted to only make changes to vectors before legalize ops because I doubt all targets have accurate condition code legality information for vectors given how little we did before.

Differential Revision: https://reviews.llvm.org/D42948

llvm-svn: 326495
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/test/CodeGen/X86/avx512-insert-extract.ll
llvm/test/CodeGen/X86/vector-compare-simplify.ll