R600/SI: Add check for amdgcn triple forgotten in r225276.
authorTom Stellard <thomas.stellard@amd.com>
Wed, 7 Jan 2015 01:17:37 +0000 (01:17 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Wed, 7 Jan 2015 01:17:37 +0000 (01:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225331 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/TargetLibraryInfo.cpp

index bca56b5c309c575a1be69e95871eb58b6c48145b..c0abdbd9279b8e2f47b5e10149d5392c347978f7 100644 (file)
@@ -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);