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

Basic conditional optimisations #4

Open
c272 opened this issue Apr 12, 2024 · 0 comments
Open

Basic conditional optimisations #4

c272 opened this issue Apr 12, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@c272
Copy link
Owner

c272 commented Apr 12, 2024

We can perform incredibly basic boolean expression optimisations on conditional expressions (e.g. removing things like NOT NOT). This should improve code size and performance for evaluating branch conditions.

There are also code generation time optimisations that can be made here, as Cranelift has support for combined operations such as bor_not which can represent a NOT X OR Y and band_not which can represent a NOT X AND Y.

@c272 c272 added the enhancement New feature or request label Apr 12, 2024
@c272 c272 self-assigned this Apr 12, 2024
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