This is a followup patch on D103636 where
it seemed checking on amdgpu-calls and
amdgpu-stack-objects is unnecessary. Removing these
checks didn't regress any tests functionally.
Details
Details
- Reviewers
arsenm rampitec Flakebi - Commits
- rGa7ed55f64c5f: [AMDGPU] Simplify getReservedNumSGPRs
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp | ||
---|---|---|
831–834 | The nested if can be merged into one. |
Comment Actions
optimize conditions
llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp | ||
---|---|---|
831–834 | Actually optimizing it a bit more, checking isAmdHsaOrMesa() is nugatory here. Setting the flag requires enableFlatScratch() to be true always. |
This comment is no longer true. SIMachineFunctionInfo.cpp:169 still tests HasCalls and HasStackObjects.