summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGStmtOpenMP.cpp
diff options
context:
space:
mode:
authorArtem Belevich <tra@google.com>2017-01-13 18:48:13 +0000
committerArtem Belevich <tra@google.com>2017-01-13 18:48:13 +0000
commitd109f46573595e78044b1276a083fd0f988d37c8 (patch)
treee740be5cde12829a1a43a6e6fd8cca3c6275e42b /clang/lib/CodeGen/CGStmtOpenMP.cpp
parentb22f6c5f26730bc8d73904d0c98c71ebc50e2919 (diff)
downloadbcm5719-llvm-d109f46573595e78044b1276a083fd0f988d37c8.tar.gz
bcm5719-llvm-d109f46573595e78044b1276a083fd0f988d37c8.zip
[NVPTX] Only lower sin/cos to approximate instructions if unsafe math is allowed.
Previously we'd always lower @llvm.{sin,cos}.f32 to {sin.cos}.approx.f32 instruction even when unsafe FP math was not allowed. Clang-generated IR is not affected by this as it uses precise sin/cos from CUDA's libdevice when unsafe math is disabled. Differential Revision: https://reviews.llvm.org/D28619 llvm-svn: 291936
Diffstat (limited to 'clang/lib/CodeGen/CGStmtOpenMP.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud