[llvm] 72b77c1 - AMDGPU: Avoid contraction in wwm allocation failure message (#150888)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 28 01:11:31 PDT 2025


Author: Matt Arsenault
Date: 2025-07-28T17:11:28+09:00
New Revision: 72b77c193f1053fc98b3da241b25f1f7ba02d7ae

URL: https://github.com/llvm/llvm-project/commit/72b77c193f1053fc98b3da241b25f1f7ba02d7ae
DIFF: https://github.com/llvm/llvm-project/commit/72b77c193f1053fc98b3da241b25f1f7ba02d7ae.diff

LOG: AMDGPU: Avoid contraction in wwm allocation failure message (#150888)

Added: 
    

Modified: 
    llvm/lib/Target/AMDGPU/SILowerSGPRSpills.cpp
    llvm/test/CodeGen/AMDGPU/wwm-regalloc-error.ll

Removed: 
    


################################################################################
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