[llvm] 056e5ec - [AMDGPU] Remove unneeded use of !dag. NFC. (#120546)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 19 03:02:02 PST 2024
Author: Jay Foad
Date: 2024-12-19T11:01:59Z
New Revision: 056e5eccaf440e9127990f9fba1e5cacac399a14
URL: https://github.com/llvm/llvm-project/commit/056e5eccaf440e9127990f9fba1e5cacac399a14
DIFF: https://github.com/llvm/llvm-project/commit/056e5eccaf440e9127990f9fba1e5cacac399a14.diff
LOG: [AMDGPU] Remove unneeded use of !dag. NFC. (#120546)
Added:
Modified:
llvm/lib/Target/AMDGPU/SIRegisterInfo.td
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/SIRegisterInfo.td b/llvm/lib/Target/AMDGPU/SIRegisterInfo.td
index 6a349d2bf06ea2..16a7a9cfbc49a7 100644
--- a/llvm/lib/Target/AMDGPU/SIRegisterInfo.td
+++ b/llvm/lib/Target/AMDGPU/SIRegisterInfo.td
@@ -903,10 +903,10 @@ multiclass SRegClass<int numRegs,
def SReg_ # suffix :
SIRegisterClass<"AMDGPU", regTypes, 32,
- !con(!dag(add, [!cast<RegisterClass>(sgprName)], ["sgpr"]),
- !if(hasTTMP,
- !dag(add, [!cast<RegisterClass>(ttmpName)], ["ttmp"]),
- (add)))> {
+ !con((add !cast<RegisterClass>(sgprName)),
+ !if(hasTTMP,
+ (add !cast<RegisterClass>(ttmpName)),
+ (add)))> {
let isAllocatable = 0;
let BaseClassOrder = !mul(numRegs, 32);
}
More information about the llvm-commits
mailing list