Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Useless reloads between calls #3102

Open
xclerc opened this issue Oct 2, 2024 · 0 comments
Open

Useless reloads between calls #3102

xclerc opened this issue Oct 2, 2024 · 0 comments
Assignees
Labels

Comments

@xclerc
Copy link
Contributor

xclerc commented Oct 2, 2024

The split/rename preprocessing phase of
the register allocators tries to move spills
and reloads, and delete them when they
cancel each other out. Unfortunately, we
currently move the instructions only in
the case of simple sequence of blocks,
which is too limited to delete all useless
spills and reloads.

We should try to improve that phase with
more aggressive code motion, or change
the initial placement of spills/reloads to
not only use the information about liveness
but also whether the value will be used
before the next destruction point.

@xclerc xclerc added the backend label Oct 2, 2024
@xclerc xclerc self-assigned this Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant