[x86] try select simplification for target-specific nodes
authorSanjay Patel <spatel@rotateright.com>
Wed, 28 Nov 2018 22:51:04 +0000 (22:51 +0000)
committerSanjay Patel <spatel@rotateright.com>
Wed, 28 Nov 2018 22:51:04 +0000 (22:51 +0000)
commit2de209313e88467ec0103b1c69d37f80eef03107
tree9995aea6e29b1e46755ed27295ddb99e641cbb4c
parentb02baf0a7ee606ade1de639e8f534942bef663a7
[x86] try select simplification for target-specific nodes

This failed to select (which might be a separate bug) in
X86ISelDAGToDAG because we try to create a select node
that can be simplified away after rL347227.

This change avoids the problem by simplifying the SHRUNKBLEND
node sooner. In the test case, we manage to realize that the
true/false values of the select (SHRUNKBLEND) are the same thing,
so it simplifies away completely.

llvm-svn: 347818
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/vselect.ll