[llvm] AMDGPU: Avoid contraction in wwm allocation failure message (PR #150888)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 27 23:52:47 PDT 2025
https://github.com/arsenm created https://github.com/llvm/llvm-project/pull/150888
None
>From ea4d53104fc611145ac3cf065bc4b29acbb6cd8c Mon Sep 17 00:00:00 2001
From: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: Mon, 28 Jul 2025 15:38:41 +0900
Subject: [PATCH] AMDGPU: Avoid contraction in wwm allocation failure message
---
llvm/lib/Target/AMDGPU/SILowerSGPRSpills.cpp | 2 +-
llvm/test/CodeGen/AMDGPU/wwm-regalloc-error.ll | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/llvm/lib/Target/AMDGPU/SILowerSGPRSpills.cpp b/llvm/lib/Target/AMDGPU/SILowerSGPRSpills.cpp
index 9f61bf8eaa3a1..d6571e3e12fbd 100644
--- a/llvm/lib/Target/AMDGPU/SILowerSGPRSpills.cpp
+++ b/llvm/lib/Target/AMDGPU/SILowerSGPRSpills.cpp
@@ -376,7 +376,7 @@ void SILowerSGPRSpills::determineRegsForWWMAllocation(MachineFunction &MF,
// Reserve an arbitrary register and report the error.
TRI->markSuperRegs(RegMask, AMDGPU::VGPR0);
MF.getFunction().getContext().emitError(
- "can't find enough VGPRs for wwm-regalloc");
+ "cannot find enough VGPRs for wwm-regalloc");
}
}
diff --git a/llvm/test/CodeGen/AMDGPU/wwm-regalloc-error.ll b/llvm/test/CodeGen/AMDGPU/wwm-regalloc-error.ll
index 145f1e483cd99..ff18b32e80d47 100644
--- a/llvm/test/CodeGen/AMDGPU/wwm-regalloc-error.ll
+++ b/llvm/test/CodeGen/AMDGPU/wwm-regalloc-error.ll
@@ -2,7 +2,7 @@
; A negative test to capture the expected error when the VGPRs are insufficient for wwm-regalloc.
-; CHECK: error: can't find enough VGPRs for wwm-regalloc
+; CHECK: error: cannot find enough VGPRs for wwm-regalloc
define amdgpu_kernel void @test(i32 %in) {
entry:
More information about the llvm-commits
mailing list