From 79bcd4a7db29e6b0abd60b44ee825f0d49d4f36a Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Thu, 2 Sep 2021 22:33:21 -0400 Subject: [PATCH] AMDGPU: Remove FeatureLocalMemorySize0 There's no reason to make this an explicit feature, since it's implied by the lack of a feature with a size. --- llvm/lib/Target/AMDGPU/AMDGPUFeatures.td | 1 - llvm/lib/Target/AMDGPU/R600Processors.td | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/llvm/lib/Target/AMDGPU/AMDGPUFeatures.td b/llvm/lib/Target/AMDGPU/AMDGPUFeatures.td index db00f8f..3533087 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUFeatures.td +++ b/llvm/lib/Target/AMDGPU/AMDGPUFeatures.td @@ -25,7 +25,6 @@ class SubtargetFeatureLocalMemorySize : SubtargetFeature< "The size of local memory in bytes" >; -def FeatureLocalMemorySize0 : SubtargetFeatureLocalMemorySize<0>; def FeatureLocalMemorySize32768 : SubtargetFeatureLocalMemorySize<32768>; def FeatureLocalMemorySize65536 : SubtargetFeatureLocalMemorySize<65536>; diff --git a/llvm/lib/Target/AMDGPU/R600Processors.td b/llvm/lib/Target/AMDGPU/R600Processors.td index fff884e..8cf8edd 100644 --- a/llvm/lib/Target/AMDGPU/R600Processors.td +++ b/llvm/lib/Target/AMDGPU/R600Processors.td @@ -45,11 +45,11 @@ class R600SubtargetFeatureGeneration ; def FeatureR600 : R600SubtargetFeatureGeneration<"R600", "r600", - [FeatureR600ALUInst, FeatureFetchLimit8, FeatureLocalMemorySize0] + [FeatureR600ALUInst, FeatureFetchLimit8] >; def FeatureR700 : R600SubtargetFeatureGeneration<"R700", "r700", - [FeatureFetchLimit16, FeatureLocalMemorySize0] + [FeatureFetchLimit16] >; def FeatureEvergreen : R600SubtargetFeatureGeneration<"EVERGREEN", "evergreen", -- 2.7.4