Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(compiler): move variable optimization earlier in pipeline
Currently the variable optimization phase of the pipeline happens after var counting and `advance` generation. This is fine at the moment since all the variables are generated at the top of the instruction set and don't require `advance` calls. In some future work we'll have to generate variables that require `advance` calls. These changes move the variable optimization down so that unused variables in the future aren't counted and we account for them when generating `advance` calls.
- Loading branch information