summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TargetLoweringBase.cpp
diff options
context:
space:
mode:
authorDaniel Sanders <daniel.sanders@imgtec.com>2016-06-21 12:29:03 +0000
committerDaniel Sanders <daniel.sanders@imgtec.com>2016-06-21 12:29:03 +0000
commitbf2c03ee6952c69f1f418707ecad471761ea6ebb (patch)
treeea9336384f476ad10641f272be6ca6f846d8f045 /llvm/lib/CodeGen/TargetLoweringBase.cpp
parenta266cf0518a3ae40a18d3133c0b10052b6b83e56 (diff)
downloadbcm5719-llvm-bf2c03ee6952c69f1f418707ecad471761ea6ebb.tar.gz
bcm5719-llvm-bf2c03ee6952c69f1f418707ecad471761ea6ebb.zip
[arm+x86] Make GNU variants behave like GNU w.r.t combining sin+cos into sincos.
Summary: canCombineSinCosLibcall() would previously combine sin+cos into sincos for GNUX32/GNUEABI/GNUEABIHF regardless of whether UnsafeFPMath were set or not. However, GNU would only combine them for UnsafeFPMath because sincos does not set errno like sin and cos do. It seems likely that this is an oversight. Reviewers: t.p.northover Subscribers: t.p.northover, aemerson, llvm-commits, rengolin Differential Revision: http://reviews.llvm.org/D21431 llvm-svn: 273259
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 aa7c4a67209..a4db08ab534 100644
--- a/llvm/lib/CodeGen/TargetLoweringBase.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp
@@ -473,7 +473,7 @@ static void InitLibcallNames(const char **Names, const Triple &TT) {
Names[RTLIB::ATOMIC_FETCH_NAND_8] = "__atomic_fetch_nand_8";
Names[RTLIB::ATOMIC_FETCH_NAND_16] = "__atomic_fetch_nand_16";
- if (TT.getEnvironment() == Triple::GNU) {
+ if (TT.isGNUEnvironment()) {
Names[RTLIB::SINCOS_F32] = "sincosf";
Names[RTLIB::SINCOS_F64] = "sincos";
Names[RTLIB::SINCOS_F80] = "sincosl";
OpenPOWER on IntegriCloud