Teach the DAG combiner to turn sitofp/uitofp from i1 into a conditional move, since...
authorOwen Anderson <resistor@mac.com>
Mon, 9 Jul 2012 20:31:12 +0000 (20:31 +0000)
committerOwen Anderson <resistor@mac.com>
Mon, 9 Jul 2012 20:31:12 +0000 (20:31 +0000)
commitd9bf71fdd26475f4629ef8861debfd2c621a372f
tree6e797d4b8428dc76be7375412b7a1e74a103492f
parent6209364834a4c0ca720d3fcc9ef7fa4c1fb39ecc
Teach the DAG combiner to turn sitofp/uitofp from i1 into a conditional move, since there are only two possible values.
Previously, this would become an integer extension operation, followed by a real integer->float conversion.

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