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

Comparison Folding #16

Open
MDFL64 opened this issue Jun 5, 2019 · 0 comments
Open

Comparison Folding #16

MDFL64 opened this issue Jun 5, 2019 · 0 comments
Labels
optimisation Implement this to make things run faster

Comments

@MDFL64
Copy link
Collaborator

MDFL64 commented Jun 5, 2019

Currently the results of comparison operations are always converted to integers, then converted back to bools when testing a conditional branch. We should store the comparison results as bools, and only convert between integers and bools if necessary. We should also try to fold the comparisons straight into conditional tests, since LuaJIT bytecode is designed to jump on comparisons.

@MDFL64 MDFL64 added the optimisation Implement this to make things run faster label Jun 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
optimisation Implement this to make things run faster
Projects
None yet
Development

No branches or pull requests

2 participants