aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-07-17 20:58:16 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-07-17 20:58:16 -0700
commit646e5af8883c87e4c9b8e709c18fb65520199dc6 (patch)
treef62ff6c12bee1f4765d7ced8becbfb69b64510f5 /emcc
parentd45e68797573060a34ea95bd5b94923f80b39bd6 (diff)
consolidate simplifyExpressions to one pass that happens before closure, where simplifyNotComps is guaranteed to be valid
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc6
1 files changed, 1 insertions, 5 deletions
diff --git a/emcc b/emcc
index bfd97883..689e5a94 100755
--- a/emcc
+++ b/emcc
@@ -1578,7 +1578,7 @@ try:
else:
return 'eliminate'
- js_optimizer_queue += [get_eliminate(), 'simplifyExpressionsPre']
+ js_optimizer_queue += [get_eliminate(), 'simplifyExpressions']
if shared.Settings.RELOOP and not shared.Settings.ASM_JS:
js_optimizer_queue += ['optimizeShiftsAggressive', get_eliminate()] # aggressive shifts optimization requires loops, it breaks on switches
@@ -1592,10 +1592,6 @@ try:
final = shared.Building.closure_compiler(final)
if DEBUG: save_intermediate('closure')
- if opt_level >= 1:
- logging.debug('running post-closure post-opts')
- js_optimizer_queue += ['simplifyExpressionsPost']
-
if shared.Settings.OUTLINING_LIMIT > 0:
js_optimizer_queue += ['outline']
js_optimizer_extra_info['sizeToOutline'] = shared.Settings.OUTLINING_LIMIT