ku-progsys / rbsyn

Program synthesis for Ruby
BSD 3-Clause "New" or "Revised" License
94 stars 4 forks source link

auto refactor common subexpression from basic blocks #20

Open ngsankha opened 4 years ago

ngsankha commented 4 years ago

The subexpression Post.where(slug: arg1).first in #13 is repeated over and over again, it would be nice if it can be refactored out. We have effect information to know that only reads are performed so it should be safe to put this subexpression on top.