egraphs-good / eggcc

MIT License
51 stars 11 forks source link

Replace jumps to the exit block with rets. #605

Closed ezrosent closed 5 months ago

ezrosent commented 5 months ago

Discussed this a bit offline. The goal here is to generate somewhat cleaner code. The snapshot diffs have some good examples; a further refinement we might explore is to keep the jumps in place when the exit block has nontrivial logic in it (to avoid duplication).