diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-07-06 18:13:25 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-07-06 18:13:25 -0700 |
commit | d94cc315efc9580fa589f184ac07259d4f97ef48 (patch) | |
tree | 7e592a655e525f80f7fe204828f75e4ed1562914 | |
parent | e07907aaa02f4cf30f8b042065ecaad96dcadcf3 (diff) |
add INLINING_LIMIT=0 to -O3
-rwxr-xr-x | tests/runner.py | 1 | ||||
-rw-r--r-- | tools/shared.py | 5 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/runner.py b/tests/runner.py index 8bff717d..a2e07bf2 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -8050,7 +8050,6 @@ elif 'benchmark' in str(sys.argv): try_delete(final_filename) output = Popen(['python', EMCC, filename, '-O3', - '-s', 'INLINING_LIMIT=0', '-s', 'TOTAL_MEMORY=100*1024*1024', '-s', 'FAST_MEMORY=10*1024*1024', '-o', final_filename] + emcc_args, stdout=PIPE, stderr=self.stderr_redirect).communicate() assert os.path.exists(final_filename), 'Failed to compile file: ' + output[0] diff --git a/tools/shared.py b/tools/shared.py index 0d99a22d..997c0ad9 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -396,11 +396,12 @@ class Settings: if opt_level >= 2: Settings.RELOOP = 1 if opt_level >= 3: + Settings.INLINING_LIMIT = 0 + Settings.DOUBLE_MODE = 0 + Settings.PRECISE_I64_MATH = 0 Settings.CORRECT_SIGNS = 0 Settings.CORRECT_OVERFLOWS = 0 Settings.CORRECT_ROUNDINGS = 0 - Settings.DOUBLE_MODE = 0 - Settings.PRECISE_I64_MATH = 0 if noisy: print >> sys.stderr, 'Warning: Applying some potentially unsafe optimizations! (Use -O2 if this fails.)' global Settings |