[llvm] [NFC] typo fixes (PR #194908)

Zeng Wu via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 29 09:48:18 PDT 2026


https://github.com/zwu-2025 created https://github.com/llvm/llvm-project/pull/194908

None

>From 267705050cf1c1eb0fb1f19d27516ab48f49c528 Mon Sep 17 00:00:00 2001
From: zwu-2025 <Zeng.Wu2 at amd.com>
Date: Wed, 29 Apr 2026 16:47:14 +0000
Subject: [PATCH] [NFC] typo fixes

---
 llvm/lib/Target/AMDGPU/SIProgramInfo.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/llvm/lib/Target/AMDGPU/SIProgramInfo.cpp b/llvm/lib/Target/AMDGPU/SIProgramInfo.cpp
index 471e2f7a3857c..99255e4060886 100644
--- a/llvm/lib/Target/AMDGPU/SIProgramInfo.cpp
+++ b/llvm/lib/Target/AMDGPU/SIProgramInfo.cpp
@@ -138,11 +138,11 @@ static uint64_t getPGMRSrc1Reg(const SIProgramInfo &ProgInfo,
 
 static uint64_t getComputePGMRSrc2Reg(const GCNSubtarget &ST,
                                       const SIProgramInfo &ProgInfo) {
-  uint64_t MaxNumerUserSGRPs = AMDGPU::getMaxNumUserSGPRs(ST);
+  uint64_t MaxNumUserSGRPs = AMDGPU::getMaxNumUserSGPRs(ST);
   uint64_t Reg = 0;
-  if (MaxNumerUserSGRPs == 32) {
+  if (MaxNumUserSGRPs == 32) {
     Reg = S_00B84C_USER_SGPR_GFX1250(ProgInfo.UserSGPR);
-  } else if (MaxNumerUserSGRPs == 16) {
+  } else if (MaxNumUserSGRPs == 16) {
     Reg = (S_00B84C_USER_SGPR(ProgInfo.UserSGPR) |
            S_00B84C_TRAP_HANDLER(ProgInfo.TrapHandlerEnable));
   } else {



More information about the llvm-commits mailing list