diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-10-06 10:34:58 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-10-06 10:34:58 -0700 |
commit | c1dd12998fd862010c7c11e6fa9d003521923a3c (patch) | |
tree | 7e44a5a6ed092897261f5c211a758e414de84074 /emcc | |
parent | 800ec1f87be63eda668e0fbde373200ccc88710c (diff) |
do not run simplifyExpressions in -O1
Diffstat (limited to 'emcc')
-rwxr-xr-x | emcc | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1742,7 +1742,10 @@ try: else: return 'eliminate' - js_optimizer_queue += [get_eliminate(), 'simplifyExpressions'] + js_optimizer_queue += [get_eliminate()] + + if opt_level >= 2: + js_optimizer_queue += ['simplifyExpressions'] if closure and not shared.Settings.ASM_JS: flush_js_optimizer_queue() |