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

Control instruction simplifications #1

Open
vouillon opened this issue Apr 5, 2023 · 0 comments
Open

Control instruction simplifications #1

vouillon opened this issue Apr 5, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@vouillon
Copy link
Collaborator

vouillon commented Apr 5, 2023

Some simplifications are possible when compiling Switch (and possibly Cond?).
In particular, one can turn br_table {0} into br 0, and br_table {0, 1, 2} into a conditional.
This could be compiled into a conditional as well:

             br_table {4, 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4}
@vouillon vouillon added the enhancement New feature or request label Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant