aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-12-19 21:51:37 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-12-19 21:51:37 -0800
commited65cfdcf12ed1187813ded47b578adcac1b9c67 (patch)
treee0afc42caa3301c711666df7ba9b718034af8b9d /emcc
parent0d3ef7fc935804229b530b8e8769ccd998e9390e (diff)
move fastcomp simplification code into emcc, and simplify it
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'])