diff options
author | Konstantin Zhuravlyov <kzhuravl_dev@outlook.com> | 2017-07-10 19:24:05 +0000 |
---|---|---|
committer | Konstantin Zhuravlyov <kzhuravl_dev@outlook.com> | 2017-07-10 19:24:05 +0000 |
commit | f392c1f9224c877b1eaadf88bad8be9f46549b81 (patch) | |
tree | eb8a4c4e1582fceacee7be1e851ccc5b9603e548 | |
parent | 3b8d30db1d0b07469b4ab7cc3f1ae9d776135d84 (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.cpp | 2 |
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}; } |