summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2019-02-08 19:18:01 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2019-02-08 19:18:01 +0000
commitd7047276ec26cf9c90a3768548af9aa9c3955c60 (patch)
tree92a067f91dd629461003e3f4d1db295823f39de9 /llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
parent987d331fab577b33255e93ce5a53850e36b9b180 (diff)
downloadbcm5719-llvm-d7047276ec26cf9c90a3768548af9aa9c3955c60.tar.gz
bcm5719-llvm-d7047276ec26cf9c90a3768548af9aa9c3955c60.zip
AMDGPU: Remove GCN features and predicates
These are no longer necessary since the R600 tablegen files are split out now. llvm-svn: 353548
Diffstat (limited to 'llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp')
-rw-r--r--llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp b/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
index 8fcac3fdb69..e1727338599 100644
--- a/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
+++ b/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
@@ -229,7 +229,8 @@ unsigned getEUsPerCU(const MCSubtargetInfo *STI) {
unsigned getMaxWorkGroupsPerCU(const MCSubtargetInfo *STI,
unsigned FlatWorkGroupSize) {
- if (!STI->getFeatureBits().test(FeatureGCN))
+ assert(FlatWorkGroupSize != 0);
+ if (STI->getTargetTriple().getArch() != Triple::amdgcn)
return 8;
unsigned N = getWavesPerWorkGroup(STI, FlatWorkGroupSize);
if (N == 1)
OpenPOWER on IntegriCloud