aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-01-07 12:24:40 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-01-07 12:24:40 -0800
commit582e3e62db1bf888f6c60881694c05cf37a3b55f (patch)
tree6aee323614f8a978ce9700a326e99dcaa154dbfc /emcc
parent04b5c9d3d434e1bf6ab0dab42fd27fd4a4dd0721 (diff)
make aggressiveVariableElimination usable through a setting
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc3
1 files changed, 3 insertions, 0 deletions
diff --git a/emcc b/emcc
index bad118cd..f1b7dc5d 100755
--- a/emcc
+++ b/emcc
@@ -1916,6 +1916,9 @@ try:
js_optimizer_queue += [get_eliminate()]
+ if shared.Settings.AGGRESSIVE_VARIABLE_ELIMINATION:
+ js_optimizer_queue += ['aggressiveVariableElimination']
+
if opt_level >= 2:
js_optimizer_queue += ['simplifyExpressions']