diff options
| author | Austin Kerbow <Austin.Kerbow@amd.com> | 2025-10-16 08:46:29 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-16 08:46:29 -0700 |
| commit | d4b1ab77c16491d423d5bbf19db4f00d214178fa (patch) | |
| tree | fadbdeb56f8586fd5762b70b622117f569758a94 /llvm/lib/Support/SourceMgr.cpp | |
| parent | a7cda50cbc80d43e6c5c4e3dc8f030dea54a8a43 (diff) | |
| download | llvm-d4b1ab77c16491d423d5bbf19db4f00d214178fa.zip llvm-d4b1ab77c16491d423d5bbf19db4f00d214178fa.tar.gz llvm-d4b1ab77c16491d423d5bbf19db4f00d214178fa.tar.bz2 | |
[AMDGPU] Examine instructions in pending queues during scheduling (#147653)
Examine instructions in the pending queue when scheduling. This makes
instructions visible to scheduling heuristics even when they aren't
immediately issuable due to hardware resource constraints.
The scheduler has two hardware resource modeling modes: an in-order mode
where instructions must be ready to issue before scheduling, and
out-of-order models where instructions are always visible to heuristics.
Special handling exists for unbuffered processor resources in
out-of-order models. These resources can cause pipeline stalls when used
back-to-back, so they're typically avoided. However, for AMDGPU targets,
managing register pressure and reducing spilling is critical enough to
justify exceptions to this approach.
This change enables examination of instructions that can't be
immediately issued because they use an already occupied unbuffered
resource. By making these instructions visible to scheduling heuristics
anyway, we gain more flexibility in scheduling decisions, potentially
allowing better register pressure and hardware resource management.
Diffstat (limited to 'llvm/lib/Support/SourceMgr.cpp')
0 files changed, 0 insertions, 0 deletions
