Invert the option to enable debug info verification. No functional
[oota-llvm.git] / lib / Target / TargetLibraryInfo.cpp
index 7f8919772f7390522ec17d37bef2315cddb6ae5b..6ec0b1f929c8ae3fb8c2d5c2cf8c6459e6e50f45 100644 (file)
@@ -378,7 +378,16 @@ static void initialize(TargetLibraryInfo &TLI, const Triple &T,
       llvm_unreachable("TargetLibraryInfo function names must be sorted");
   }
 #endif // !NDEBUG
-  
+
+  // There are no library implementations of mempcy and memset for r600 and
+  // these can be difficult to lower in the backend.
+  if (T.getArch() == Triple::r600) {
+    TLI.setUnavailable(LibFunc::memcpy);
+    TLI.setUnavailable(LibFunc::memset);
+    TLI.setUnavailable(LibFunc::memset_pattern16);
+    return;
+  }
+
   // memset_pattern16 is only available on iOS 3.0 and Mac OS X 10.5 and later.
   if (T.isMacOSX()) {
     if (T.isMacOSXVersionLT(10, 5))