Optimize unmodified variables

This commit is contained in:
alexlamsl
2016-09-20 22:23:27 +08:00
committed by Richard van Velzen
parent 0111497fc9
commit 4761d07e0b
4 changed files with 184 additions and 5 deletions

View File

@@ -348,6 +348,9 @@ to set `true`; it's effectively a shortcut for `foo=true`).
- `collapse_vars` -- default `false`. Collapse single-use `var` and `const`
definitions when possible.
- `reduce_vars` -- default `false`. Improve optimization on variables assigned
with and used as constant values.
- `warnings` -- display warnings when dropping unreachable code or unused
declarations etc.