summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGCall.cpp
diff options
context:
space:
mode:
authorYaxun Liu <Yaxun.Liu@amd.com>2018-07-21 02:02:22 +0000
committerYaxun Liu <Yaxun.Liu@amd.com>2018-07-21 02:02:22 +0000
commite1bfbc589fea7e9e18e073b331f40869610cbf6c (patch)
tree2a8c2d26a29c950de240b72be71a18ff077e215d /clang/lib/CodeGen/CGCall.cpp
parent37f25a24bbf1fdb384c1e2559f033952f934a6e1 (diff)
downloadbcm5719-llvm-e1bfbc589fea7e9e18e073b331f40869610cbf6c.tar.gz
bcm5719-llvm-e1bfbc589fea7e9e18e073b331f40869610cbf6c.zip
[HIP] Support -fcuda-flush-denormals-to-zero for amdgcn
Differential Revision: https://reviews.llvm.org/D48287 llvm-svn: 337639
Diffstat (limited to 'clang/lib/CodeGen/CGCall.cpp')
-rw-r--r--clang/lib/CodeGen/CGCall.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp
index fcc8a3e5f64..f60136c2f17 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/lib/CodeGen/CGCall.cpp
@@ -1800,7 +1800,7 @@ void CodeGenModule::ConstructDefaultFnAttrList(StringRef Name, bool HasOptnone,
FuncAttrs.addAttribute(llvm::Attribute::NoUnwind);
// Respect -fcuda-flush-denormals-to-zero.
- if (getLangOpts().CUDADeviceFlushDenormalsToZero)
+ if (CodeGenOpts.FlushDenorm)
FuncAttrs.addAttribute("nvptx-f32ftz", "true");
}
}
OpenPOWER on IntegriCloud