OSDN Git Service

[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)
commitc85f3082e00624892e22ccd0c100e4b9d4fdf224
tree791fe621ffe6a583a8fb0834be87a0f64ef806d1
parent54b34d20c2ab1851d92f191538f9decfc5d733c5
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@347818 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/vselect.ll