This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Switch to backwards scavenging in non-spill cases
ClosedPublic

Authored by foad on May 24 2023, 6:07 AM.

Details

Reviewers
arsenm
Group Reviewers
Restricted Project
Commits
rG94e48d433d7a: [AMDGPU] Switch to backwards scavenging in non-spill cases
Summary

When the scavenger is not allowed to spill, the only difference between
forward and backward should be the heuristics used to pick an available
register. Forwards scavenging tries to pick a register that can be used
again later in the BB; backwards scavenging tries to pick one that can
be used earlier.

Backwards scavenging is preferred because it does not rely on accurate
kill flags.

Diff Detail

Event Timeline

foad created this revision.May 24 2023, 6:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 24 2023, 6:07 AM
foad requested review of this revision.May 24 2023, 6:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 24 2023, 6:07 AM
arsenm accepted this revision.May 24 2023, 6:36 AM
This revision is now accepted and ready to land.May 24 2023, 6:36 AM
This revision was automatically updated to reflect the committed changes.