[llvm] c8450ea - AMDGPU: Remove the unnecessary needAlias argument in DS_Real_gfx12 (#146439)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 1 10:20:28 PDT 2025
Author: Changpeng Fang
Date: 2025-07-01T10:20:25-07:00
New Revision: c8450ea226edc65c1b532ee01230d3e9a7bfbacb
URL: https://github.com/llvm/llvm-project/commit/c8450ea226edc65c1b532ee01230d3e9a7bfbacb
DIFF: https://github.com/llvm/llvm-project/commit/c8450ea226edc65c1b532ee01230d3e9a7bfbacb.diff
LOG: AMDGPU: Remove the unnecessary needAlias argument in DS_Real_gfx12 (#146439)
Added:
Modified:
llvm/lib/Target/AMDGPU/DSInstructions.td
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/DSInstructions.td b/llvm/lib/Target/AMDGPU/DSInstructions.td
index f824253ce0f35..44b03226738eb 100644
--- a/llvm/lib/Target/AMDGPU/DSInstructions.td
+++ b/llvm/lib/Target/AMDGPU/DSInstructions.td
@@ -1326,14 +1326,14 @@ class Base_DS_Real_gfx6_gfx7_gfx10_gfx11_gfx12<bits<8> op, DS_Pseudo ps, int ef,
// GFX12.
//===----------------------------------------------------------------------===//
-multiclass DS_Real_gfx12<bits<8> op, string name = !tolower(NAME), bit needAlias = true> {
+multiclass DS_Real_gfx12<bits<8> op, string name = !tolower(NAME)> {
defvar ps = !cast<DS_Pseudo>(NAME);
let AssemblerPredicate = isGFX12Plus in {
let DecoderNamespace = "GFX12" in
def _gfx12 :
Base_DS_Real_gfx6_gfx7_gfx10_gfx11_gfx12<op, ps, SIEncodingFamily.GFX12,
name, /*hasGDS=*/false>;
- if !and(needAlias, !ne(ps.Mnemonic, name)) then
+ if !ne(ps.Mnemonic, name) then
def : AMDGPUMnemonicAlias<ps.Mnemonic, name>;
} // End AssemblerPredicate
}
@@ -1362,7 +1362,7 @@ defm DS_LOAD_TR16_B128 : DS_Real_gfx12<0x0fc>;
defm DS_LOAD_TR8_B64 : DS_Real_gfx12<0x0fd>;
defm DS_BVH_STACK_RTN_B32 : DS_Real_gfx12<0x0e0,
- "ds_bvh_stack_push4_pop1_rtn_b32", true>;
+ "ds_bvh_stack_push4_pop1_rtn_b32">;
defm DS_BVH_STACK_PUSH8_POP1_RTN_B32 : DS_Real_gfx12<0x0e1>;
defm DS_BVH_STACK_PUSH8_POP2_RTN_B64 : DS_Real_gfx12<0x0e2>;
More information about the llvm-commits
mailing list