CozySynthesizer / cozy

The collection synthesizer
https://cozy.uwplse.org
Apache License 2.0
209 stars 18 forks source link

Common subexpression elimination #24

Closed seizethedave closed 6 years ago

seizethedave commented 6 years ago

Just to track the progress of the various subtasks. This is an elimination pass done right before code gen.

Expression localizing pass notes

Assume that where the ELet or SDecl is encountered is sufficiently high in the tree that all references to it can use it.

Calvin-L commented 6 years ago

Common subexpression elimination seems to work and can now be enabled in main.py using the --cse flag.

Thanks for all your hard work on this, David!