diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-07-17 20:58:16 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-07-17 20:58:16 -0700 |
commit | 646e5af8883c87e4c9b8e709c18fb65520199dc6 (patch) | |
tree | f62ff6c12bee1f4765d7ced8becbfb69b64510f5 /emcc | |
parent | d45e68797573060a34ea95bd5b94923f80b39bd6 (diff) |
consolidate simplifyExpressions to one pass that happens before closure, where simplifyNotComps is guaranteed to be valid
Diffstat (limited to 'emcc')
-rwxr-xr-x | emcc | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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 |