From: Nicolai Haehnle Date: Tue, 14 Jun 2016 13:14:53 +0000 (+0000) Subject: AMDGPU: mark {exp,log}10{,f,l} library functions as unavailable X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=49fa89507c3a54c8e0934f46a874d497c3b0c526;p=llvm 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272664 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/TargetLibraryInfo.cpp b/lib/Analysis/TargetLibraryInfo.cpp index 68b0764c62d..789b0396e0b 100644 --- a/lib/Analysis/TargetLibraryInfo.cpp +++ b/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