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
Unit Tests
Unit Tests
Event Timeline
llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp | ||
---|---|---|
732–735 | The nested if can be merged into one. |
Comment Actions
optimize conditions
llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp | ||
---|---|---|
732–735 | Actually optimizing it a bit more, checking isAmdHsaOrMesa() is nugatory here. Setting the flag requires enableFlatScratch() to be true always. |
clang-tidy: warning: invalid case style for variable 'isEntry' [readability-identifier-naming]
not useful