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

Branch constant factoring #360

Open
pschachte opened this issue Sep 27, 2022 · 0 comments
Open

Branch constant factoring #360

pschachte opened this issue Sep 27, 2022 · 0 comments
Labels
enhancement New feature or request performance Issues related to performance of generated code

Comments

@pschachte
Copy link
Owner

When the code in both (all) branches of a fork are identical except for some constants, replace the whole fork with code to use the fork variable to index some static constant arrays to look up the constant values that differ between branches, followed by the common code using the constant values just looked up. This will let the compiler produce static look-up tables from ordinary Wybe code.

@pschachte pschachte added enhancement New feature or request performance Issues related to performance of generated code labels Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request performance Issues related to performance of generated code
Projects
None yet
Development

No branches or pull requests

1 participant