DAG Combiner: Fold SelectCC When Cond is UNDEF
authorMehdi Amini <mehdi.amini@apple.com>
Wed, 14 Jan 2015 05:45:24 +0000 (05:45 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Wed, 14 Jan 2015 05:45:24 +0000 (05:45 +0000)
commitcfe92407cd9dfb72bef82f1c16e4b11723e13193
treef085659e9ebddd0bf44fc7539e61aedc682f5c79
parent125de50e12b47557eeee20838a749de3a595a3bb
DAG Combiner: Fold SelectCC When Cond is UNDEF

In case folding a node end up with a NaN as operand for the select,
the folding of the condition of the selectcc node returns "UNDEF".

Differential Revision: http://reviews.llvm.org/D6889

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225952 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp