aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-03-14 20:05:33 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-03-17 17:56:17 -0700
commit3215f80b20f5cf98390c43a2c5c8b3f4ebcdd984 (patch)
tree28a3c5a52f7a3c07c1b45587f233ffe3b52a6fa1 /emcc
parent4f0e8c3aed0ce2e4606c5c8facacfbd3c015d375 (diff)
simplifyIfs js optimizer pass
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc2
1 files changed, 2 insertions, 0 deletions
diff --git a/emcc b/emcc
index 1c57d991..3845beb1 100755
--- a/emcc
+++ b/emcc
@@ -1689,6 +1689,8 @@ try:
js_optimizer_queue += ['simplifyExpressions']
+ if debug_level == 0 or profiling: js_optimizer_queue += ['simplifyIfs']
+
if opt_level >= 3 and shared.Settings.PRECISE_F32: js_optimizer_queue += ['optimizeFrounds']
if closure and not shared.Settings.ASM_JS: