[llvm] 9f536c7 - [NFC][AMDGPU] Remove unused `FeatureDisable` (#177288)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 22 06:07:33 PST 2026
Author: Shilei Tian
Date: 2026-01-22T09:07:28-05:00
New Revision: 9f536c771d29a11cc1767e36ae0d56452d1e56fa
URL: https://github.com/llvm/llvm-project/commit/9f536c771d29a11cc1767e36ae0d56452d1e56fa
DIFF: https://github.com/llvm/llvm-project/commit/9f536c771d29a11cc1767e36ae0d56452d1e56fa.diff
LOG: [NFC][AMDGPU] Remove unused `FeatureDisable` (#177288)
Added:
Modified:
llvm/lib/Target/AMDGPU/AMDGPU.td
llvm/lib/Target/AMDGPU/GCNSubtarget.h
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/AMDGPU.td b/llvm/lib/Target/AMDGPU/AMDGPU.td
index 0a18d30654681..b2c960edd02a5 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPU.td
+++ b/llvm/lib/Target/AMDGPU/AMDGPU.td
@@ -1290,12 +1290,6 @@ def FeatureUseAddPC64Inst : SubtargetFeature<"use-add-pc64-inst",
"Use s_add_pc_i64 instruction."
>;
-// Dummy feature used to disable assembler instructions.
-def FeatureDisable : SubtargetFeature<"",
- "FeatureDisable","true",
- "Dummy feature to disable assembler instructions"
->;
-
//===----------------------------------------------------------------------===//
class GCNSubtargetFeatureGeneration <string Value,
diff --git a/llvm/lib/Target/AMDGPU/GCNSubtarget.h b/llvm/lib/Target/AMDGPU/GCNSubtarget.h
index 790e9d0950425..1a6b6656eb207 100644
--- a/llvm/lib/Target/AMDGPU/GCNSubtarget.h
+++ b/llvm/lib/Target/AMDGPU/GCNSubtarget.h
@@ -328,9 +328,6 @@ class GCNSubtarget final : public AMDGPUGenSubtargetInfo,
bool RequiresWaitsBeforeSystemScopeStores = false;
bool UseAddPC64Inst = false;
- // Dummy feature to use for assembler in tablegen.
- bool FeatureDisable = false;
-
#define DECL_HAS_MEMBER(Name) bool Has##Name = false;
GCN_SUBTARGET_HAS_FEATURE(DECL_HAS_MEMBER)
GCN_SUBTARGET_HAS_FEATURE_MEMBER_ONLY(DECL_HAS_MEMBER)
More information about the llvm-commits
mailing list