Fix a problem duraid encountered on itanium where this folding:
authorChris Lattner <sabre@nondot.org>
Fri, 9 Sep 2005 23:00:07 +0000 (23:00 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 9 Sep 2005 23:00:07 +0000 (23:00 +0000)
commit3ec5d74fc5bc03bdb3ab5876799dff4d82e38193
treeb8981089114f409ee55baba8a2bda58b0090bffb
parent08addbd4770a60adb6dbdc29cf73e7720f08197a
Fix a problem duraid encountered on itanium where this folding:
select (x < y), 1, 0 -> (x < y) incorrectly: the setcc returns i1 but the
select returned i32.  Add the zero extend as needed.

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