diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-12-19 21:51:37 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-12-19 21:51:37 -0800 |
commit | ed65cfdcf12ed1187813ded47b578adcac1b9c67 (patch) | |
tree | e0afc42caa3301c711666df7ba9b718034af8b9d /emcc | |
parent | 0d3ef7fc935804229b530b8e8769ccd998e9390e (diff) |
move fastcomp simplification code into emcc, and simplify it
Diffstat (limited to 'emcc')
-rwxr-xr-x | emcc | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1704,6 +1704,12 @@ try: assert len(input_files) == 1 if DEBUG and save_bc: save_intermediate('ll', 'll') + # Simplify LLVM bitcode for fastcomp + if os.environ.get('EMCC_FAST_COMPILER'): + logging.debug('simplifying LLVM IR for fastcomp') + shared.Building.llvm_opt(final, ['-pnacl-abi-simplify-preopt', '-pnacl-abi-simplify-postopt']) + if DEBUG: save_intermediate('simple', 'bc') + if AUTODEBUG: logging.debug('autodebug') execute([shared.PYTHON, shared.AUTODEBUGGER, final, final + '.ad.ll']) |