Skip to content

Next-gen compiler (experimental) - #57

Merged
IntegralPilot merged 29 commits into
mainfrom
ssa-experiment
Sep 25, 2026
Merged

IntegralPilot merged 29 commits into
mainfrom
ssa-experiment

Conversation

@IntegralPilot

@IntegralPilot IntegralPilot commented Sep 6, 2026 •

Copy link
Copy Markdown
Owner

Rewrite of OOMIR to be much cleaner and SSA, as well as much nicer layout and code for the compiler. Been working on for a while, just uploaded as it's ready to share.

The diff size is comically large because I moved a bunch of files, it's not rly that much

Current status:

  • Compile speed, depends on the crate but generally 2x-3x improvement (debug), 1.5-2x improvement (release) in my testing
  • Memory usage (max RSS) - depends heavily on the crate, can range from basically the same (+/- 0.5%) to 2.5x improvement for some (large_methods went from 2472 to 991 MB)
  • Runtime speed - currently a slight regression, this is what I need to fix before merging! SSA enables much better optimisation etc. so I think I can actually get this to an improvement

@IntegralPilot IntegralPilot changed the title Experiment Next-gen compiler Sep 22, 2026
@IntegralPilot IntegralPilot changed the title Next-gen compiler Next-gen compiler (experimental) Sep 22, 2026
@IntegralPilot

Copy link
Copy Markdown
Owner Author

runtime speed has now caught up and I'm happy with it, so merging

@IntegralPilot
IntegralPilot merged commit c76c24c into main Sep 25, 2026
4 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.

1 participant