diff options
author | Daniel Sanders <daniel.sanders@imgtec.com> | 2016-06-21 12:29:03 +0000 |
---|---|---|
committer | Daniel Sanders <daniel.sanders@imgtec.com> | 2016-06-21 12:29:03 +0000 |
commit | bf2c03ee6952c69f1f418707ecad471761ea6ebb (patch) | |
tree | ea9336384f476ad10641f272be6ca6f846d8f045 /llvm/lib/CodeGen/TargetLoweringBase.cpp | |
parent | a266cf0518a3ae40a18d3133c0b10052b6b83e56 (diff) | |
download | bcm5719-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.cpp | 2 |
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"; |