Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bfd8ab5

Browse files
committed
Under Minify, inline VarDefs used only once when we can.
During the optimizer, when emitting a `VarDef(x, ..., rhs)`, we try to inline it if it has been used exactly once. In order to do that, we look at the `body` in which it will be available, and replace its only occurrence if it occurs in the first evaluation context following only pure subexpressions. See the long comment in the code for more details.
1 parent 8e47d09 commit bfd8ab5

File tree

5 files changed

+331
-38
lines changed

5 files changed

+331
-38
lines changed

0 commit comments

Comments
 (0)