stevehalliwell / ulox

A bytecode interpreted scripting language for games in Unity.
MIT License
23 stars 0 forks source link

Optimiser passes #233

Closed stevehalliwell closed 6 months ago

stevehalliwell commented 6 months ago

Optimiser now uses passes instead of local functions making it easier to expand and configure in the future.

Primarily thought it adds new logic to the optimiser, it now removes unused labels, collapses zero jumps, reorders single use weaved sections, and removes unreachable code after various passes.

close #232

Remember to Add/Update the:

github-actions[bot] commented 6 months ago

Coverage Status

coverage: 90.897% (+0.1%) from 90.784% when pulling bc5351eba6c54804072ef4f32dd66b20b34625ac on byte-reorder into 4f282b5dbe46c1e74ae9a99504895b8d96ab3b96 on main.