We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c75b24e commit 315e64fCopy full SHA for 315e64f
llvm/lib/Target/AMDGPU/GCNRegPressure.h
@@ -51,8 +51,8 @@ struct GCNRegPressure {
51
? getUnifiedVGPRNum(Value[VGPR], Value[AGPR], Value[AVGPR])
52
: Value[VGPR] + Value[AVGPR];
53
}
54
- // Until we hit the VGPRThreshold, we will assign AV as VGPR. After that
55
- // point, we will assign as AGPR.
+ // AVGPR assignment priority is based on the width of the register. Account
+ // AVGPR pressure as VGPR.
56
return std::max(Value[VGPR] + Value[AVGPR], Value[AGPR]);
57
58
0 commit comments