Skip to content

Commit 9ee58b7

Browse files
committed
Formatting.
1 parent 046e8a3 commit 9ee58b7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

llvm/lib/Target/AMDGPU/GCNSubtarget.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -628,9 +628,11 @@ GCNUserSGPRUsageInfo::GCNUserSGPRUsageInfo(const Function &F,
628628

629629
if (ST.hasFlatAddressSpace() && AMDGPU::isEntryFunctionCC(CC) &&
630630
(IsAmdHsaOrMesa || ST.enableFlatScratch()) &&
631-
// FlatScratchInit cannot be true for graphics CC if enableFlatScratch() is false.
631+
// FlatScratchInit cannot be true for graphics CC if enableFlatScratch()
632+
// is false.
632633
(ST.enableFlatScratch() ||
633-
(!AMDGPU::isGraphics(CC) && !F.hasFnAttribute("amdgpu-no-flat-scratch-init"))) &&
634+
(!AMDGPU::isGraphics(CC) &&
635+
!F.hasFnAttribute("amdgpu-no-flat-scratch-init"))) &&
634636
!ST.flatScratchIsArchitected()) {
635637
FlatScratchInit = true;
636638
}

0 commit comments

Comments
 (0)