aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-03-08 10:26:18 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-03-08 10:26:18 -0800
commit49970438a39d7f61d8591aca3f5f2d2d2ada748b (patch)
treeb78382df60722bf59ac71f436b89113822b3123c /emcc
parenta3fa0380155176e4d60159ccc5f2a264268863ac (diff)
run registerize pass last
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc7
1 files changed, 4 insertions, 3 deletions
diff --git a/emcc b/emcc
index fa62acb1..58d49972 100755
--- a/emcc
+++ b/emcc
@@ -1347,14 +1347,15 @@ try:
if DEBUG: print >> sys.stderr, 'emcc: running closure'
final = shared.Building.closure_compiler(final)
if DEBUG: save_intermediate('closure')
- elif shared.Settings.RELOOP and not closure and not keep_js_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'
js_optimizer_queue += ['simplifyExpressionsPost']
+ if not closure and shared.Settings.RELOOP and not keep_js_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 minify_whitespace:
js_optimizer_queue += ['compress']