Skip to content

rotate registers in regalloc on cfg: #3719

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

Open
gretay-js opened this issue Mar 20, 2025 · 0 comments
Open

rotate registers in regalloc on cfg: #3719

gretay-js opened this issue Mar 20, 2025 · 0 comments
Assignees
Labels

Comments

@gretay-js
Copy link
Contributor

Upstream compiler uses Proc.rotate_registers in coloring on Mach, but there is no corresponding optimization in IRC on CFG.
We are removing this unused setting from flambda-backend, but should consider implementing such an optimization on CFG in the future. Relevant comment removed from amd64 backend:

(* Pack registers starting at %rax so as to reduce the number of REX
   prefixes and thus improve code density *)
let rotate_registers = false
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

2 participants