[Legalizer] Use correct ValueType of SELECT_CC node during Float promotion
authorPirama Arumuga Nainar <pirama@google.com>
Fri, 11 Jan 2019 18:46:02 +0000 (18:46 +0000)
committerPirama Arumuga Nainar <pirama@google.com>
Fri, 11 Jan 2019 18:46:02 +0000 (18:46 +0000)
commitcc07dabdaa634d59466b1a80e4d1d4a742147254
tree82db7e8486cb600dae1425abe3727cdfa7535708
parentce386e306dfe1786ca880894eaea420fe4cfd7c3
[Legalizer] Use correct ValueType of SELECT_CC node during Float promotion

Summary:
When legalizing the result of a SELECT_CC node by promoting the
floating-point type, use the promoted-to type rather than the original
type.

Fix PR40273.

Reviewers: efriedma, majnemer

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D56566

llvm-svn: 350951
llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
llvm/test/CodeGen/X86/half.ll