nim-works / phy

compiler and vm experiments
MIT License
3 stars 2 forks source link

pass0: omit unnecessary jumps #56

Closed zerbina closed 1 month ago

zerbina commented 1 month ago

Don't emit single-instruction jumps to the following basic block at the end of basic blocks. They're unnecessary, and omitting them significantly reduces code size for procedures with many basic blocks.