egraphs-good / eggcc

MIT License
51 stars 11 forks source link

[Tree Optimizer] Re-associate for constant folding #252

Open oflatt opened 10 months ago

oflatt commented 10 months ago

Example: (+ 3 (+ x 4)) => (+ (+ 3 4) x)

Don't include Associative and commutative rules, instead canonicalize to one form