DAGCombine: always constant fold FMA when target disable FP exceptions
authorMehdi Amini <mehdi.amini@apple.com>
Fri, 23 Jan 2015 07:07:20 +0000 (07:07 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Fri, 23 Jan 2015 07:07:20 +0000 (07:07 +0000)
commit33cf319cd12340814a56a65945e7df70118420e0
treea9962c21fb03150a29d5f12360a2017bcb6cc7f7
parentefd63170c80d3f322f274552a2f04729b7cbb0fb
DAGCombine: always constant fold FMA when target disable FP exceptions

Summary: When trying to constant fold an FMA in the DAG, getNode()
fails to fold the FMA if an operand is not finite. In this case this
patch allows the constant folding if !TLI->hasFloatingPointExceptions()

Reviewers: resistor

Reviewed By: resistor

Subscribers: hfinkel, llvm-commits

Differential Revision: http://reviews.llvm.org/D6912

From: Mehdi Amini <mehdi.amini@apple.com>

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