Skip to content

Commit 5bf0b78

Browse files
committed
Format
1 parent 7262c7f commit 5bf0b78

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

llvm/lib/Target/AMDGPU/GCNRegPressure.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ bool GCNRPTarget::isVGPRSaveBeneficial(unsigned NumRegsInRC,
432432
if (NumRegsInRC > MaxVGPRs)
433433
return true;
434434
if (UnifiedRF) {
435-
// Combined VGPR usage must be respected in unified RFs. .
435+
// Combined VGPR usage must be respected in unified RFs.
436436
if (RP.getVGPRNum(true) > MaxUnifiedVGPRs)
437437
return true;
438438
// When the other VGPR RC is above its addressable limit and there is not

llvm/lib/Target/AMDGPU/GCNRegPressure.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,9 @@ class GCNRPTarget {
249249
/// for subtargets with non-unified RFs.
250250
unsigned MaxUnifiedVGPRs;
251251

252-
GCNRPTarget(const GCNRegPressure &RP, const MachineFunction & MF)
253-
: MF(MF), UnifiedRF(MF.getSubtarget<GCNSubtarget>().hasGFX90AInsts()), RP(RP) {}
252+
GCNRPTarget(const GCNRegPressure &RP, const MachineFunction &MF)
253+
: MF(MF), UnifiedRF(MF.getSubtarget<GCNSubtarget>().hasGFX90AInsts()),
254+
RP(RP) {}
254255

255256
/// Determines whether saving a VGPR from a VGPR RC (ArchVGPR or AGPR) where
256257
/// \p NumRegsInRC VGPRs are used is beneficial. \p NumRegsInOtherRC is the

0 commit comments

Comments
 (0)