Skip to content

Commit 315e64f

Browse files
committed
Fix comment
Change-Id: I40b174912ad90652dcd5f59a4e4b37300408f6d2
1 parent c75b24e commit 315e64f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/AMDGPU/GCNRegPressure.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ struct GCNRegPressure {
5151
? getUnifiedVGPRNum(Value[VGPR], Value[AGPR], Value[AVGPR])
5252
: Value[VGPR] + Value[AVGPR];
5353
}
54-
// Until we hit the VGPRThreshold, we will assign AV as VGPR. After that
55-
// point, we will assign as AGPR.
54+
// AVGPR assignment priority is based on the width of the register. Account
55+
// AVGPR pressure as VGPR.
5656
return std::max(Value[VGPR] + Value[AVGPR], Value[AGPR]);
5757
}
5858

0 commit comments

Comments
 (0)