Skip to content

Commit 890c105

Browse files
committed
Fix typo on
1 parent 83aab61 commit 890c105

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/GCNRegPressure.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ bool GCNRPTarget::isSaveBeneficial(Register Reg) const {
425425
bool GCNRPTarget::satisfied() const {
426426
if (RP.getSGPRNum() > MaxSGPRs || RP.getVGPRNum(false) > MaxVGPRs)
427427
return false;
428-
if (UnifiedRF && RP.getVGPRNum(true) > MaxVGPRs)
428+
if (UnifiedRF && RP.getVGPRNum(true) > MaxUnifiedVGPRs)
429429
return false;
430430
return true;
431431
}

0 commit comments

Comments
 (0)