Partial fix to r225380 (More FMA folding opportunities)
authorHal Finkel <hfinkel@anl.gov>
Fri, 9 Jan 2015 00:45:54 +0000 (00:45 +0000)
committerHal Finkel <hfinkel@anl.gov>
Fri, 9 Jan 2015 00:45:54 +0000 (00:45 +0000)
commit40ddb2ce8f53a9d5dcfdeeb26a2df5675e9b0293
tree8d322dd161bd00a0c59c14adc9edcb4943303fcc
parentce0e12f0b4f304ba2d008c4facd302f127d34b2e
Partial fix to r225380 (More FMA folding opportunities)

As pointed out by Aditya (and Owen), there are two things wrong with this code.
First, it adds patterns which elide FP extends when forming FMAs, and that might
not be profitable on all targets (it belongs behind the pre-existing
aggressive-FMA-formation flag). This is fixed by this change.

Second, the resulting nodes might have operands of different types (the
extensions need to be re-added). That will be fixed in the follow-up commit.

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