summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2015-01-07 01:17:37 +0000
committerTom Stellard <thomas.stellard@amd.com>2015-01-07 01:17:37 +0000
commitd00a923e5dc6b75866b5533aaa5a81546829f897 (patch)
tree78d781390204a2e88c83a22cbc1a19a359d1dde1
parent5a25fd596238556a447d3e004624dafa0dfd59a4 (diff)
downloadbcm5719-llvm-d00a923e5dc6b75866b5533aaa5a81546829f897.tar.gz
bcm5719-llvm-d00a923e5dc6b75866b5533aaa5a81546829f897.zip
R600/SI: Add check for amdgcn triple forgotten in r225276.
llvm-svn: 225331
-rw-r--r--llvm/lib/Target/TargetLibraryInfo.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Target/TargetLibraryInfo.cpp b/llvm/lib/Target/TargetLibraryInfo.cpp
index bca56b5c309..c0abdbd9279 100644
--- a/llvm/lib/Target/TargetLibraryInfo.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud