diff options
Diffstat (limited to 'emcc')
-rwxr-xr-x | emcc | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1186,9 +1186,14 @@ try: else: return 'eliminate' - js_optimizer_queue += [get_eliminate()] + def get_simplify_pre(): + if shared.Settings.ASM_JS: + return 'simplifyExpressionsPreAsm' + else: + return 'simplifyExpressionsPre' + + js_optimizer_queue += [get_eliminate(), get_simplify_pre()] - js_optimizer_queue += ['simplifyExpressionsPre'] if shared.Settings.RELOOP: js_optimizer_queue += ['optimizeShiftsAggressive', get_eliminate()] # aggressive shifts optimization requires loops, it breaks on switches |