diff options
| author | Christudasan Devadasan <christudasan.devadasan@amd.com> | 2024-01-24 07:08:43 +0530 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-24 07:08:43 +0530 | 
| commit | 230c13d59d0843c3b738920b85c341cc78a61fa9 (patch) | |
| tree | 2b21ba0fb19a086167639d4a212b4d56d0e48e2c /llvm/lib/CodeGen/RDFGraph.cpp | |
| parent | 7e50f006f7f652b9a5ac5ddd64deba5f1c9388a8 (diff) | |
| download | llvm-230c13d59d0843c3b738920b85c341cc78a61fa9.zip llvm-230c13d59d0843c3b738920b85c341cc78a61fa9.tar.gz llvm-230c13d59d0843c3b738920b85c341cc78a61fa9.tar.bz2 | |
[AMDGPU] Pick available high VGPR for CSR SGPR spilling (#78669)
CSR SGPR spilling currently uses the early available physical VGPRs. It
currently imposes a high register pressure while trying to allocate
large VGPR tuples within the default register budget.
This patch changes the spilling strategy by picking the VGPRs in the
reverse order, the highest available VGPR first and later after regalloc
shift them back to the lowest available range. With that, the initial
VGPRs would be available for allocation and possibility
of finding large number of contiguous registers will be more.
Diffstat (limited to 'llvm/lib/CodeGen/RDFGraph.cpp')
0 files changed, 0 insertions, 0 deletions
