diff options
author | Nicolai Haehnle <nhaehnle@gmail.com> | 2016-06-14 13:14:53 +0000 |
---|---|---|
committer | Nicolai Haehnle <nhaehnle@gmail.com> | 2016-06-14 13:14:53 +0000 |
commit | 377975f2f7c9a180fed8352ff8e7bf43cdf278b6 (patch) | |
tree | 03f15da9c9fcabeda068fa70b7f8c302ba95427c /llvm/lib/Analysis/TargetLibraryInfo.cpp | |
parent | 62417d597224ce52ea1cf46bfc540268e8c4bed1 (diff) | |
download | bcm5719-llvm-377975f2f7c9a180fed8352ff8e7bf43cdf278b6.tar.gz bcm5719-llvm-377975f2f7c9a180fed8352ff8e7bf43cdf278b6.zip |
AMDGPU: mark {exp,log}10{,f,l} library functions as unavailable
Summary:
The SimplifyLibCalls part of InstCombine generates calls to those otherwise.
I wonder if at some point we shouldn't just call disableAllFunctions() and
then enable functions on a whitelist basis...
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96495
Reviewers: arsenm, tstellarAMD
Subscribers: llvm-commits, kzhuravl
Differential Revision: http://reviews.llvm.org/D21282
llvm-svn: 272664
Diffstat (limited to 'llvm/lib/Analysis/TargetLibraryInfo.cpp')
-rw-r--r-- | llvm/lib/Analysis/TargetLibraryInfo.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/TargetLibraryInfo.cpp b/llvm/lib/Analysis/TargetLibraryInfo.cpp index 68b0764c62d..789b0396e0b 100644 --- a/llvm/lib/Analysis/TargetLibraryInfo.cpp +++ b/llvm/lib/Analysis/TargetLibraryInfo.cpp @@ -65,6 +65,12 @@ static void initialize(TargetLibraryInfoImpl &TLI, const Triple &T, TLI.setUnavailable(LibFunc::ldexp); TLI.setUnavailable(LibFunc::ldexpf); TLI.setUnavailable(LibFunc::ldexpl); + TLI.setUnavailable(LibFunc::exp10); + TLI.setUnavailable(LibFunc::exp10f); + TLI.setUnavailable(LibFunc::exp10l); + TLI.setUnavailable(LibFunc::log10); + TLI.setUnavailable(LibFunc::log10f); + TLI.setUnavailable(LibFunc::log10l); } // There are no library implementations of mempcy and memset for AMD gpus and |