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

Codechange: Reduce register usage for BinOp #308

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

glx22
Copy link
Contributor

@glx22 glx22 commented Oct 3, 2023

When second argument of a BinOp is LOAD_TEMP(), it is first copied into a temporary register instead of being accessed directly.

Skip the useless copy.

@glx22 glx22 force-pushed the binop_load_temp branch from 492ee65 to 78ba688 Compare July 9, 2024 21:22
@glx22 glx22 merged commit 1255ba0 into OpenTTD:master Jul 9, 2024
21 checks passed
@glx22 glx22 deleted the binop_load_temp branch July 9, 2024 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants