mbeckem / tiro

A simple scripting language.
MIT License
7 stars 0 forks source link

New intermediate representation #2

Closed mbeckem closed 4 years ago

mbeckem commented 4 years ago

The new intermediate representation uses an SSA representation for local variables. Simple optimizations (such as dead code elimination, copy propagation and constant folding) have already been implemented.

The bytecode generation phase is not perfect yet (trivial register allocation is used which results in too many locals), but feature parity with the old implementation has been reached.