]> granicus.if.org Git - llvm/commit
[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)
commitfbc74ee51cbfdd5d48c288d55f86cc4352a02c98
tree709042ef0e5351cde26f7466ba5f324973fbf1aa
parente39377580b4d5141ca385850a8941485360c20f3
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350951 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
test/CodeGen/X86/half.ll