aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>2017-07-10 19:24:05 +0000
committerKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>2017-07-10 19:24:05 +0000
commitf392c1f9224c877b1eaadf88bad8be9f46549b81 (patch)
treeeb8a4c4e1582fceacee7be1e851ccc5b9603e548
parent3b8d30db1d0b07469b4ab7cc3f1ae9d776135d84 (diff)
AMDGPU: Do not test for SI in getIsaVersion
SI is being tested by isa version in the first two if statements of the function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307573 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp b/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
index 26515b27bb7..ca7ae3f6a31 100644
--- a/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
+++ b/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
@@ -142,7 +142,7 @@ IsaVersion getIsaVersion(const FeatureBitset &Features) {
if (Features.test(FeatureISAVersion9_0_3))
return {9, 0, 3};
- if (!Features.test(FeatureGCN) || Features.test(FeatureSouthernIslands))
+ if (!Features.test(FeatureGCN))
return {0, 0, 0};
return {7, 0, 0};
}