Skip to content

A pair of optimisations - #157

Merged
ltratt merged 2 commits into
ykjit:mainfrom
ltratt:opts
Aug 28, 2026
Merged

A pair of optimisations#157
ltratt merged 2 commits into
ykjit:mainfrom
ltratt:opts

Conversation

@ltratt

@ltratt ltratt commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

This PR contains two optimisations (one very simple, one somewhat more involved) which speed up several benchmarks (and make sieve slightly slower).

ltratt added 2 commits August 28, 2026 09:51
`KC(i)` uses `yk_promote` which allows `RKC(i)` to identify optimisation
potential that is otherwise missed.
yk's alias analysis doesn't notice this opportunity: by manually
expanding things, and making the const-ness explicit, it is noticed.
@ltratt
ltratt enabled auto-merge August 28, 2026 10:14
@ltratt
ltratt added this pull request to the merge queue Aug 28, 2026
Merged via the queue into ykjit:main with commit 6ea11e6 Aug 28, 2026
2 checks passed
@ltratt
ltratt deleted the opts branch August 28, 2026 10:52
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.

1 participant