stevehalliwell / ulox

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

Basic block de-duplication #237

Open stevehalliwell opened 9 months ago

stevehalliwell commented 9 months ago

Optimiser could identify basic blocks that are identical in operations and collapse their usage into one.

Often see a number of label pop goto end, coming from different locations in the same chunk.

stevehalliwell commented 8 months ago

Starting point here would be to ident basic blocks in chunks and then rework the existing optimiser passes so those that only care about basic bocks only iterate through basic blocks.