[llvm] r307573 - AMDGPU: Do not test for SI in getIsaVersion
Konstantin Zhuravlyov via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 10 12:24:05 PDT 2017
Author: kzhuravl
Date: Mon Jul 10 12:24:05 2017
New Revision: 307573
URL: http://llvm.org/viewvc/llvm-project?rev=307573&view=rev
Log:
AMDGPU: Do not test for SI in getIsaVersion
SI is being tested by isa version in the first two if statements of the function.
Modified:
llvm/trunk/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp?rev=307573&r1=307572&r2=307573&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp Mon Jul 10 12:24:05 2017
@@ -142,7 +142,7 @@ IsaVersion getIsaVersion(const FeatureBi
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};
}
More information about the llvm-commits
mailing list