[SelectionDAG] Support known true/false SimplifySetCC cases for comparing against...
authorCraig Topper <craig.topper@intel.com>
Tue, 20 Feb 2018 21:48:14 +0000 (21:48 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 20 Feb 2018 21:48:14 +0000 (21:48 +0000)
commit7fbea20b90d766c5175595d6c5a322602c59c8c0
treea9f9db30362d4c0d9eae5633556d03a4347a5f79
parent4dbea991374042222d996918190e2b69478246ab
[SelectionDAG] Support known true/false SimplifySetCC cases for comparing against vector splats of constants.

This is split off from D42948 and includes just the cases that constant fold to true or false. It also includes some refactoring to keep predicate checks together.

This supports things like

(setcc uge X, 0) -> true

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

llvm-svn: 325627
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/test/CodeGen/X86/avx512-mask-op.ll
llvm/test/CodeGen/X86/avx512-schedule.ll
llvm/test/CodeGen/X86/vector-compare-simplify.ll