diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-11-21 16:36:13 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-11-21 16:36:13 -0800 |
commit | ae48758800aab7bdc442988a7472b590f7f62e71 (patch) | |
tree | d8fb3cd90d06a53c50729816136e38a75770d4be /emscripten.py | |
parent | fdbd52c1a419f5ae8d6aa0c16e43abf37f59a7a9 (diff) |
do not -O2 between abi simplification
Diffstat (limited to 'emscripten.py')
-rwxr-xr-x | emscripten.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/emscripten.py b/emscripten.py index f2f143c5..b111610d 100755 --- a/emscripten.py +++ b/emscripten.py @@ -748,14 +748,14 @@ def emscript_fast(infile, settings, outfile, libraries=[], compiler_engine=None, shutil.copyfile(temp1, os.path.join(shared.CANONICAL_TEMP_DIR, 'temp1.bc')) shared.jsrun.timeout_run(subprocess.Popen([os.path.join(shared.PNACL_ROOT, 'llvm-dis'), 'temp1.bc', '-o', 'temp1.ll'])) - if DEBUG: logging.debug(' ..2..') - temp2 = temp_files.get('.2.bc').name - shared.jsrun.timeout_run(subprocess.Popen([os.path.join(shared.PNACL_ROOT, 'opt'), temp1, '-O3', '-o', temp2])) - assert os.path.exists(temp2) - if DEBUG: - shutil.copyfile(temp2, os.path.join(shared.CANONICAL_TEMP_DIR, 'temp2.bc')) - shared.jsrun.timeout_run(subprocess.Popen([os.path.join(shared.PNACL_ROOT, 'llvm-dis'), 'temp2.bc', '-o', 'temp2.ll'])) - #temp2 = temp1 + #if DEBUG: logging.debug(' ..2..') + #temp2 = temp_files.get('.2.bc').name + #shared.jsrun.timeout_run(subprocess.Popen([os.path.join(shared.PNACL_ROOT, 'opt'), temp1, '-O3', '-o', temp2])) + #assert os.path.exists(temp2) + #if DEBUG: + # shutil.copyfile(temp2, os.path.join(shared.CANONICAL_TEMP_DIR, 'temp2.bc')) + # shared.jsrun.timeout_run(subprocess.Popen([os.path.join(shared.PNACL_ROOT, 'llvm-dis'), 'temp2.bc', '-o', 'temp2.ll'])) + temp2 = temp1 # XXX if we optimize the bc, we remove some pnacl clutter, but it also makes varargs stores be 8-byte aligned if DEBUG: logging.debug(' ..3..') temp3 = temp_files.get('.3.bc').name |