From 9e634bc22f2a1f8d889227179b0e5c6c77aa9db6 Mon Sep 17 00:00:00 2001 From: Jay Foad Date: Wed, 28 Oct 2020 12:56:42 +0000 Subject: [PATCH] [AMDGPU] Omit needless string concatenations. NFC. --- llvm/lib/Target/AMDGPU/BUFInstructions.td | 2 +- llvm/lib/Target/AMDGPU/DSInstructions.td | 2 +- llvm/lib/Target/AMDGPU/EvergreenInstructions.td | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/lib/Target/AMDGPU/BUFInstructions.td b/llvm/lib/Target/AMDGPU/BUFInstructions.td index 1f81f60..1f2eeb0 100644 --- a/llvm/lib/Target/AMDGPU/BUFInstructions.td +++ b/llvm/lib/Target/AMDGPU/BUFInstructions.td @@ -486,7 +486,7 @@ class MUBUF_Load_Pseudo .ret, !if(HasTiedDest, (ins getVregSrcForVT.ret:$vdata_in), (ins))), " $vdata, " # getMUBUFAsmOps.ret # "$glc$slc" # - !if(isLds, " lds", "$tfe") # "$dlc" # "$swz", + !if(isLds, " lds", "$tfe") # "$dlc$swz", pattern>, MUBUF_SetupAddr { let PseudoInstr = opName # !if(isLds, "_lds", "") # diff --git a/llvm/lib/Target/AMDGPU/DSInstructions.td b/llvm/lib/Target/AMDGPU/DSInstructions.td index 6f6cd23..b551060 100644 --- a/llvm/lib/Target/AMDGPU/DSInstructions.td +++ b/llvm/lib/Target/AMDGPU/DSInstructions.td @@ -118,7 +118,7 @@ class DS_1A2D_NORET : DS_Pseudo { + "$addr, $data0, $data1$offset$gds"> { let has_vdst = 0; } diff --git a/llvm/lib/Target/AMDGPU/EvergreenInstructions.td b/llvm/lib/Target/AMDGPU/EvergreenInstructions.td index cd9c056..8d3e138 100644 --- a/llvm/lib/Target/AMDGPU/EvergreenInstructions.td +++ b/llvm/lib/Target/AMDGPU/EvergreenInstructions.td @@ -78,7 +78,7 @@ multiclass RAT_ATOMIC op_ret, bits<6> op_noret, string name> { def _RTN: CF_MEM_RAT ; + name # "_RTN $rw_gpr, $index_gpr", [] >; def _NORET: CF_MEM_RAT