summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Targets.cpp
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2014-09-19 11:42:56 +0000
committerHal Finkel <hfinkel@anl.gov>2014-09-19 11:42:56 +0000
commit62ac736faa3f9e1307529d365a5267b9cfbb8084 (patch)
tree6a599b336245ca5601140882d6be01beee7c322e /clang/lib/Basic/Targets.cpp
parent3549ea1a73d70f4950925794a34240a466ac86c4 (diff)
downloadbcm5719-llvm-62ac736faa3f9e1307529d365a5267b9cfbb8084.tar.gz
bcm5719-llvm-62ac736faa3f9e1307529d365a5267b9cfbb8084.zip
Optionally enable more-aggressive FMA formation in DAGCombine
The heuristic used by DAGCombine to form FMAs checks that the FMUL has only one use, but this is overly-conservative on some systems. Specifically, if the FMA and the FADD have the same latency (and the FMA does not compete for resources with the FMUL any more than the FADD does), there is no need for the restriction, and furthermore, forming the FMA leaving the FMUL can still allow for higher overall throughput and decreased critical-path length. Here we add a new TLI callback, enableAggressiveFMAFusion, false by default, to elide the hasOneUse check. This is enabled for PowerPC by default, as most PowerPC systems will benefit. Patch by Olivier Sallenave, thanks! llvm-svn: 218120
Diffstat (limited to 'clang/lib/Basic/Targets.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud