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

Use -O2. #92

Merged
merged 1 commit into from
Oct 8, 2024
Merged

Use -O2. #92

merged 1 commit into from
Oct 8, 2024

Conversation

vext01
Copy link
Contributor

@vext01 vext01 commented Oct 7, 2024

Both the Lua tests and the benchmarks all now work with -O2, so we may aw well use it.

As we learned the other week, a higher AOT optimisation level leads to smaller AOT IR, which in turn makes smaller JIT IR traces, which in theory we should be able to optimise better.

Very quick benchmarking suggests this doesn't always speed us up yet.

E.g. Richards ~9% speedup, BigLoop ~4% slowdown.

Both the Lua tests and the benchmarks all now work with -O2, so we may
aw well use it.

As we learned the other week, a higher AOT optimisation level leads to
smaller AOT IR, which in turn makes smaller JIT IR traces, which in
theory we should be able to optimise better.

Very quick benchmarking suggests this doesn't always speed us up yet.

E.g. Richards ~9% speedup, BigLoop ~4% slowdown.
@vext01 vext01 assigned ptersilie and Pavel-Durov and unassigned Pavel-Durov Oct 7, 2024
@ptersilie ptersilie added this pull request to the merge queue Oct 8, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 8, 2024
@vext01
Copy link
Contributor Author

vext01 commented Oct 8, 2024

This can go in now too.

@ptersilie ptersilie added this pull request to the merge queue Oct 8, 2024
Merged via the queue into ykjit:main with commit 2e2dae3 Oct 8, 2024
2 checks passed
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.

3 participants