AMDGPU: mark ldexp LibCalls as unavailable
authorNicolai Hahnle <nhaehnle@gmail.com>
Tue, 15 Dec 2015 17:24:15 +0000 (17:24 +0000)
committerNicolai Hahnle <nhaehnle@gmail.com>
Tue, 15 Dec 2015 17:24:15 +0000 (17:24 +0000)
commit44c3e26b9596ba117968d5d94ef1f2ac8fe7cb86
treec4ec27fb7d360a35d919dfa3073fb4f9410ddb40
parentad31d10fabf065f3a64afdff8bc9203167df984b
AMDGPU: mark ldexp LibCalls as unavailable

Summary:
The LibCallSimplifier will turn llvm.exp2.* intrinsics into ldexp* libcalls
which do not make sense with the AMDGPU backend.

In the long run, we'll want an llvm.ldexp.* intrinsic to properly make use of
this optimization, but this works around the problem for now.

See also: http://reviews.llvm.org/D14327 (suggested llvm.ldexp.* implementation)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92709

Reviewers: arsenm, tstellarAMD

Differential Revision: http://reviews.llvm.org/D14990

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255658 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/TargetLibraryInfo.cpp
test/Transforms/InstCombine/exp2-1.ll