Optimizer - Started work on function inlining

For now:
* Option that triggers inlining
* Compute list of inline-able functions
This commit is contained in:
Emmanuel BENOîT 2017-12-17 15:59:29 +01:00
parent fd84c3cae3
commit 94b01e62b4
7 changed files with 117 additions and 10 deletions

View file

@ -9,6 +9,7 @@
)
(constant-propagation on)
(dead-code-elimination on)
(function-inlining on)
)
)

View file

@ -362,9 +362,9 @@
(fn bloom-downsample (target level)
(locals m w h)
(set m (inv (pow 2 $level)))
(set w (mul $vp-width $m))
(set h (mul $vp-height $m))
(set m (pow 2 $level))
(set w (div $vp-width $m))
(set h (div $vp-height $m))
(use-pipeline pl-bloom-downsample)
(use-framebuffer target)