diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-01-08 16:41:44 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-01-08 16:43:52 -0800 |
commit | 78dbafb289e222550abda6b53e7099352a599804 (patch) | |
tree | bac704182dd01dc3d78bf0f1ca6064f78b1d7786 /emcc | |
parent | 0779c55c28f17d796f3f13962cfcac954e6cef59 (diff) |
keep a coercion right on top of heap accesses in asm mode
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 |