From: Tom Stellard Date: Wed, 7 Jan 2015 01:17:37 +0000 (+0000) Subject: R600/SI: Add check for amdgcn triple forgotten in r225276. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=d83c5959f8843178beba0bf172435039f2045047;p=oota-llvm.git R600/SI: Add check for amdgcn triple forgotten in r225276. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225331 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/TargetLibraryInfo.cpp b/lib/Target/TargetLibraryInfo.cpp index bca56b5c309..c0abdbd9279 100644 --- a/lib/Target/TargetLibraryInfo.cpp +++ b/lib/Target/TargetLibraryInfo.cpp @@ -389,9 +389,10 @@ static void initialize(TargetLibraryInfo &TLI, const Triple &T, } #endif // !NDEBUG - // There are no library implementations of mempcy and memset for r600 and + // There are no library implementations of mempcy and memset for AMD gpus and // these can be difficult to lower in the backend. - if (T.getArch() == Triple::r600) { + if (T.getArch() == Triple::r600 || + T.getArch() == Triple::amdgcn) { TLI.setUnavailable(LibFunc::memcpy); TLI.setUnavailable(LibFunc::memset); TLI.setUnavailable(LibFunc::memset_pattern16);