aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Foad <jay.foad@amd.com>2024-04-03 10:17:25 +0100
committerGitHub <noreply@github.com>2024-04-03 10:17:25 +0100
commit7c7ce0b9b1cef51e24f2dc7e904a8adf6aaf1abf (patch)
tree88e83c6ec508cd192d647bfb2c7eb39d352e9017
parent29c7d1a60c9d45e82f08cd7487178846ed5f9c6d (diff)
downloadllvm-7c7ce0b9b1cef51e24f2dc7e904a8adf6aaf1abf.zip
llvm-7c7ce0b9b1cef51e24f2dc7e904a8adf6aaf1abf.tar.gz
llvm-7c7ce0b9b1cef51e24f2dc7e904a8adf6aaf1abf.tar.bz2
[AMDGPU] Remove useless aliases for FLAT instructions. NFC. (#87462)
We were generating "" (the empty string) as an alias for a bunch of FLAT instructions, which had no effect except to cause tablegen to generate some very long if-else chains in the generate AsmMatcher.
-rw-r--r--llvm/lib/Target/AMDGPU/FLATInstructions.td4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/AMDGPU/FLATInstructions.td b/llvm/lib/Target/AMDGPU/FLATInstructions.td
index d017ec4..27d5616 100644
--- a/llvm/lib/Target/AMDGPU/FLATInstructions.td
+++ b/llvm/lib/Target/AMDGPU/FLATInstructions.td
@@ -2558,7 +2558,7 @@ multiclass VFLAT_Real_Base_gfx12<bits<8> op,
multiclass VFLAT_Real_Atomics_gfx12<bits<8> op,
string name = get_FLAT_ps<NAME>.Mnemonic,
- string alias = ""> :
+ string alias = name> :
VFLAT_Real_Base_gfx12<op, name, alias> {
defm _RTN : VFLAT_Real_gfx12<op, name>;
}
@@ -2581,7 +2581,7 @@ multiclass VGLOBAL_Real_AllAddr_gfx12_w64<bits<8> op,
multiclass VGLOBAL_Real_Atomics_gfx12<bits<8> op,
string name = get_FLAT_ps<NAME>.Mnemonic,
- string alias = ""> :
+ string alias = name> :
VGLOBAL_Real_AllAddr_gfx12<op, name, alias> {
defm _RTN : VFLAT_Real_gfx12<op, name>;
defm _SADDR_RTN : VFLAT_Real_gfx12<op, name>;