summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorAhmed Bougacha <ahmed.bougacha@gmail.com>2016-05-31 18:50:25 +0000
committerAhmed Bougacha <ahmed.bougacha@gmail.com>2016-05-31 18:50:25 +0000
commit96ef87e9105ad1cecd72981eaf970982f66b3725 (patch)
treee280e019945e7f97e20d33c11cfe2dfc47af4ccf /llvm/lib/CodeGen
parente4b3812ec22f8b22108c4705662178e1e081bd73 (diff)
downloadbcm5719-llvm-96ef87e9105ad1cecd72981eaf970982f66b3725.tar.gz
bcm5719-llvm-96ef87e9105ad1cecd72981eaf970982f66b3725.zip
[CodeGen] Promote FMINNAN/FMAXNAN like other binops.
We think it's OK to generate half fminnan because it's legal for the transform-to type (f32; r245196). However, PromoteFloatRes was missing the case; simply promote like the other binops, including minnum. llvm-svn: 271317
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
index 38639a2a3a2..a72e55643bc 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
@@ -1868,6 +1868,8 @@ void DAGTypeLegalizer::PromoteFloatResult(SDNode *N, unsigned ResNo) {
// Binary FP Operations
case ISD::FADD:
case ISD::FDIV:
+ case ISD::FMAXNAN:
+ case ISD::FMINNAN:
case ISD::FMAXNUM:
case ISD::FMINNUM:
case ISD::FMUL:
OpenPOWER on IntegriCloud