ruby-syntax-tree / syntax_tree

Interact with the Ruby syntax tree

Home Page:https://ruby-syntax-tree.github.io/syntax_tree/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Optimization passes on sea of nodes

kddnewton opened this issue · comments

Once we have the sea of nodes representation, we should be able to start writing optimization passes. This includes:

  • adjuststack nodes should become multiple pop nodes since this can end up eliminating pairs of unnecessary read/writes.
  • jump instructions with a single input and single output can be eliminated entirely from the graph.