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:
parent
f574780c5e
commit
efa1b26150
4 changed files with 144 additions and 3 deletions
test
|
@ -4,7 +4,9 @@
|
|||
(1920 1080)
|
||||
)
|
||||
(optimizer on
|
||||
(constant-folding on)
|
||||
(constant-folding on
|
||||
# (fixed-resolution on)
|
||||
)
|
||||
(constant-propagation on)
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue