aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-02-17 11:27:12 +0100
committerAlon Zakai <alonzakai@gmail.com>2013-02-17 11:27:12 +0100
commitd646177eae20378a379c5651d2150a81566a945c (patch)
tree7501b77cca1b9cae4ebd2881da947a870ed38835
parent13c0ad5f16dda77c8ad5329f198286d1efbbbcb9 (diff)
use registerize only when not keeping debug, and also use it when closure is disabled, not just ASM_JS mode (which is just one case where closure is disabled)
-rwxr-xr-xemcc5
1 files changed, 3 insertions, 2 deletions
diff --git a/emcc b/emcc
index ce84773d..e971d955 100755
--- a/emcc
+++ b/emcc
@@ -1231,8 +1231,9 @@ try:
if DEBUG: print >> sys.stderr, 'emcc: running closure'
final = shared.Building.closure_compiler(final)
if DEBUG: save_intermediate('closure')
- elif shared.Settings.ASM_JS and shared.Settings.RELOOP:
- js_optimizer_queue += ['registerize'] # we can't use closure in asm, but this does much of the same
+ elif shared.Settings.RELOOP and not closure and not keep_debug:
+ # do this if closure is not enabled (it gives similar speedups), and we do not need to keep debug info around
+ js_optimizer_queue += ['registerize']
if opt_level >= 1:
if DEBUG: print >> sys.stderr, 'emcc: running post-closure post-opts'