Optimizer - Constant propagation for variables

* It doesn't work for function arguments at this point, but shouldn't be
too hard to implement that.
* Can't use it to its full potential mostly because I need to get rid of
the node-specific shit in the AST.
This commit is contained in:
Emmanuel BENOîT 2017-12-12 18:30:41 +01:00
parent f574780c5e
commit efa1b26150
4 changed files with 144 additions and 3 deletions

View file

@ -4,7 +4,9 @@
(1920 1080)
)
(optimizer on
(constant-folding on)
(constant-folding on
# (fixed-resolution on)
)
(constant-propagation on)
)
)