summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprComplex.cpp
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2013-09-12 23:57:55 +0000
committerHal Finkel <hfinkel@anl.gov>2013-09-12 23:57:55 +0000
commit28b2ae3692e507e307efb3c775d8d3b27e40c10c (patch)
treec82dd100020454a315788747bf6b27a1f6374efd /clang/lib/CodeGen/CGExprComplex.cpp
parent0167a313dadfeb3239568dbe39f781e07ea4be9e (diff)
downloadbcm5719-llvm-28b2ae3692e507e307efb3c775d8d3b27e40c10c.tar.gz
bcm5719-llvm-28b2ae3692e507e307efb3c775d8d3b27e40c10c.zip
Restore the sqrt -> llvm.sqrt mapping in fast-math mode
This restores the sqrt -> llvm.sqrt mapping, but only in fast-math mode (specifically, when the UnsafeFPMath or NoNaNsFPMath CodeGen options are enabled). The @llvm.sqrt* intrinsics have slightly different semantics from the libm call, specifically, they are undefined when given a non-zero negative number (the libm calls will always return NaN for any negative number). This mapping was removed in r100613, and replaced with a TODO, but at that time the fast-math flags were not yet implemented. Now that we have these, restoring this mapping is important because it will enable autovectorization of sqrt calls in loops (at least in fast-math mode). llvm-svn: 190646
Diffstat (limited to 'clang/lib/CodeGen/CGExprComplex.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud