Skip to content

Commit 084e7c8

Browse files
committed
Fix formatting.
1 parent 84f99ed commit 084e7c8

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
@@ -623,14 +623,16 @@ GCNUserSGPRUsageInfo::GCNUserSGPRUsageInfo(const Function &F,
623623
DispatchID = true;
624624
}
625625

626-
const bool IsNoFlatScratchInitSet = F.hasFnAttribute("amdgpu-no-flat-scratch-init");
626+
const bool IsNoFlatScratchInitSet =
627+
F.hasFnAttribute("amdgpu-no-flat-scratch-init");
627628

628629
if (ST.hasFlatAddressSpace() && AMDGPU::isEntryFunctionCC(CC) &&
629630
(IsAmdHsaOrMesa || ST.enableFlatScratch()) &&
630631
// The line below: If enableFlatScratch() is true, whether
631632
// no-flat-scratch-init is set is not important. If enableFlatScratch()
632633
// is false, FlatScratchInit cannot be true for graphics CC.
633-
(ST.enableFlatScratch() || (!IsNoFlatScratchInitSet && !AMDGPU::isGraphics(CC))) &&
634+
(ST.enableFlatScratch() ||
635+
(!IsNoFlatScratchInitSet && !AMDGPU::isGraphics(CC))) &&
634636
!ST.flatScratchIsArchitected()) {
635637
FlatScratchInit = true;
636638
}

0 commit comments

Comments
 (0)