Skip to content

Commit 7c7ce0b

Browse files
authored
[AMDGPU] Remove useless aliases for FLAT instructions. NFC. (llvm#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.
1 parent 29c7d1a commit 7c7ce0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/AMDGPU/FLATInstructions.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2558,7 +2558,7 @@ multiclass VFLAT_Real_Base_gfx12<bits<8> op,
25582558

25592559
multiclass VFLAT_Real_Atomics_gfx12<bits<8> op,
25602560
string name = get_FLAT_ps<NAME>.Mnemonic,
2561-
string alias = ""> :
2561+
string alias = name> :
25622562
VFLAT_Real_Base_gfx12<op, name, alias> {
25632563
defm _RTN : VFLAT_Real_gfx12<op, name>;
25642564
}
@@ -2581,7 +2581,7 @@ multiclass VGLOBAL_Real_AllAddr_gfx12_w64<bits<8> op,
25812581

25822582
multiclass VGLOBAL_Real_Atomics_gfx12<bits<8> op,
25832583
string name = get_FLAT_ps<NAME>.Mnemonic,
2584-
string alias = ""> :
2584+
string alias = name> :
25852585
VGLOBAL_Real_AllAddr_gfx12<op, name, alias> {
25862586
defm _RTN : VFLAT_Real_gfx12<op, name>;
25872587
defm _SADDR_RTN : VFLAT_Real_gfx12<op, name>;

0 commit comments

Comments
 (0)