[DAGCombine] Teach DAG combine that if both inputs of a vselect are the same, then...
authorCraig Topper <craig.topper@gmail.com>
Thu, 24 Nov 2016 21:48:52 +0000 (21:48 +0000)
committerCraig Topper <craig.topper@gmail.com>
Thu, 24 Nov 2016 21:48:52 +0000 (21:48 +0000)
commit8c4cdf06db3e2261ff6db220273ecfc09b6c23a7
treeeca7730923cb9835156ee74aa45741e468b84167
parentd621e3a25bc32b8e9936bf125760bd033fbd1207
[DAGCombine] Teach DAG combine that if both inputs of a vselect are the same, then the condition doesn't matter and the vselect can be removed.

Selects with scalar condition already handle this correctly.

llvm-svn: 287904
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp