[llvm] [AMDGPU] Remove unneeded use of !dag. NFC. (PR #120546)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 19 02:14:49 PST 2024


https://github.com/jayfoad created https://github.com/llvm/llvm-project/pull/120546

None

>From af452c36a5fedcb122571d43f99dabfafd7fff30 Mon Sep 17 00:00:00 2001
From: Jay Foad <jay.foad at amd.com>
Date: Thu, 19 Dec 2024 10:12:26 +0000
Subject: [PATCH] [AMDGPU] Remove unneeded use of !dag. NFC.

---
 llvm/lib/Target/AMDGPU/SIRegisterInfo.td | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

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