aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-02-03 10:17:32 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-02-03 10:17:32 -0800
commit3605e51ea9f67d6a5761313fb37a4a77521e61ac (patch)
tree1d69833ce041a264c9002348adc3d445fbfa203f /emcc
parentb4914455a788a63ca2191678a28620ded82d07f2 (diff)
do not run unnecessary optimizeShiftsAggressive+eliminate steps in asm mode, it is pointless and just wastes compilation time
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc2
1 files changed, 1 insertions, 1 deletions
diff --git a/emcc b/emcc
index c2d3181d..40b3d206 100755
--- a/emcc
+++ b/emcc
@@ -1195,7 +1195,7 @@ try:
js_optimizer_queue += [get_eliminate(), 'simplifyExpressionsPre']
- if shared.Settings.RELOOP:
+ 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
if closure: