aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc6
1 files changed, 6 insertions, 0 deletions
diff --git a/emcc b/emcc
index 6d8cccb6..60469601 100755
--- a/emcc
+++ b/emcc
@@ -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'])