Skip to content

Commit 72b77c1

Browse files
authored
AMDGPU: Avoid contraction in wwm allocation failure message (llvm#150888)
1 parent ddb12c1 commit 72b77c1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/lib/Target/AMDGPU/SILowerSGPRSpills.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ void SILowerSGPRSpills::determineRegsForWWMAllocation(MachineFunction &MF,
376376
// Reserve an arbitrary register and report the error.
377377
TRI->markSuperRegs(RegMask, AMDGPU::VGPR0);
378378
MF.getFunction().getContext().emitError(
379-
"can't find enough VGPRs for wwm-regalloc");
379+
"cannot find enough VGPRs for wwm-regalloc");
380380
}
381381
}
382382

llvm/test/CodeGen/AMDGPU/wwm-regalloc-error.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
; A negative test to capture the expected error when the VGPRs are insufficient for wwm-regalloc.
44

5-
; CHECK: error: can't find enough VGPRs for wwm-regalloc
5+
; CHECK: error: cannot find enough VGPRs for wwm-regalloc
66

77
define amdgpu_kernel void @test(i32 %in) {
88
entry:

0 commit comments

Comments
 (0)