summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TargetLoweringBase.cpp
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2017-07-23 22:30:00 +0000
committerPetr Hosek <phosek@chromium.org>2017-07-23 22:30:00 +0000
commit710479cede7766535e179071d04dfa56d722f2fd (patch)
treebc30d48eb055b2be64b724cd6974bc3a986e8ebf /llvm/lib/CodeGen/TargetLoweringBase.cpp
parent4e61a7f833183f952f6be4ac71307c98177d77c2 (diff)
downloadbcm5719-llvm-710479cede7766535e179071d04dfa56d722f2fd.tar.gz
bcm5719-llvm-710479cede7766535e179071d04dfa56d722f2fd.zip
[CodeGen][X86] Fuchsia supports sincos* libcalls and sin+cos->sincos optimization
Patch by Roland McGrath Differential Revision: https://reviews.llvm.org/D35748 llvm-svn: 308854
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringBase.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp
index 8be9e192e5b..40a126a89fc 100644
--- a/llvm/lib/CodeGen/TargetLoweringBase.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp
@@ -97,7 +97,7 @@ static void InitLibcallNames(const char **Names, const Triple &TT) {
Names[RTLIB::FPROUND_F32_F16] = "__gnu_f2h_ieee";
}
- if (TT.isGNUEnvironment()) {
+ if (TT.isGNUEnvironment() || TT.isOSFuchsia()) {
Names[RTLIB::SINCOS_F32] = "sincosf";
Names[RTLIB::SINCOS_F64] = "sincos";
Names[RTLIB::SINCOS_F80] = "sincosl";
OpenPOWER on IntegriCloud