aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-01-23 14:11:41 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-01-23 14:11:41 -0800
commit71360ca6a75bfa2f3c9bdb09ad14817c88507a8b (patch)
tree0f483c430e0d5fbedea90653ae3243c06789972c /emcc
parentff69c85ed7d4228b71b712e161c9bbb7464271c5 (diff)
simplify llvm opt picking code, and allow up to level 3
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc4
1 files changed, 2 insertions, 2 deletions
diff --git a/emcc b/emcc
index 5bfee46e..3576b462 100755
--- a/emcc
+++ b/emcc
@@ -77,7 +77,7 @@ import os, sys, shutil, tempfile
from subprocess import Popen, PIPE, STDOUT
from tools import shared
-MAX_LLVM_OPT_LEVEL = 2
+MAX_LLVM_OPT_LEVEL = 3
DEBUG = os.environ.get('EMCC_DEBUG')
TEMP_DIR = os.environ.get('EMCC_TEMP_DIR')
@@ -520,7 +520,7 @@ try:
# Optimize, if asked to
if llvm_opts > 0 and opt_level > 0 and not LEAVE_INPUTS_RAW:
if DEBUG: print >> sys.stderr, 'emcc: LLVM opts'
- shared.Building.llvm_opt(in_temp(target_basename + '.bc'), min(opt_level, MAX_LLVM_OPT_LEVEL), safe=shared.Settings.USE_TYPED_ARRAYS != 2)
+ shared.Building.llvm_opt(in_temp(target_basename + '.bc'), min(opt_level, MAX_LLVM_OPT_LEVEL))
else:
# If possible, remove dead functions etc., this potentially saves a lot in the size of the generated code (and the time to compile it)
if not LEAVE_INPUTS_RAW and not shared.Settings.BUILD_AS_SHARED_LIB and not shared.Settings.LINKABLE: