[llvm] [AMDGPU] Remove wavefrontsize feature from GFX10+ (PR #98400)
Stanislav Mekhanoshin via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 11 01:58:23 PDT 2024
================
@@ -105,6 +105,14 @@ GCNSubtarget::initializeSubtargetDependencies(const Triple &TT,
: AMDGPUSubtarget::SOUTHERN_ISLANDS;
}
+ if (!hasFeature(AMDGPU::FeatureWavefrontSize32) &&
+ !hasFeature(AMDGPU::FeatureWavefrontSize64)) {
+ if (getGeneration() >= AMDGPUSubtarget::GFX10)
+ ToggleFeature(AMDGPU::FeatureWavefrontSize32);
+ else
+ ToggleFeature(AMDGPU::FeatureWavefrontSize64);
----------------
rampitec wrote:
IMHO to do what you want features must be:
1) Organized in groups.
2) We need to tell features in group are mutually exclusive.
3) There shall be a way to tell this one is the default.
None of that exists.
https://github.com/llvm/llvm-project/pull/98400
More information about the llvm-commits
mailing list