diff options
author | Artem Belevich <tra@google.com> | 2017-01-13 18:48:13 +0000 |
---|---|---|
committer | Artem Belevich <tra@google.com> | 2017-01-13 18:48:13 +0000 |
commit | d109f46573595e78044b1276a083fd0f988d37c8 (patch) | |
tree | e740be5cde12829a1a43a6e6fd8cca3c6275e42b /clang/lib/CodeGen/CGStmtOpenMP.cpp | |
parent | b22f6c5f26730bc8d73904d0c98c71ebc50e2919 (diff) | |
download | bcm5719-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