If no scratch or flat instructions are used, we do not need to
initialize the flat scratch hardware register.
Details
Details
- Reviewers
rampitec arsenm foad - Commits
- rG4359b870b187: [AMDGPU] Init scratch only if necessary
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
It is also not necessary to request the scratch SRD to be set up in the User SGPRs. There is a significant performance cost for small kernels to requesting this unneeded set of 4 SGPRs to be initialized by the hardware.