[PATCH] D104513: [AMDGPU] Simplify getReservedNumSGPRs
Sebastian Neubauer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 22 01:22:52 PDT 2021
sebastian-ne added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp:733-735
+ if (hasFlatAddressSpace() && isEntry && !flatScratchIsArchitected() &&
+ (isAmdHsaOrMesa(F) || enableFlatScratch())) {
+ if (enableFlatScratch())
----------------
The nested if can be merged into one.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104513/new/
https://reviews.llvm.org/D104513
More information about the llvm-commits
mailing list