aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-01-06 11:37:10 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-01-06 11:37:10 -0800
commit7ceb5eea73565ced4687c5b2c04859dbed9f2ac2 (patch)
treecb10bf5a0472cfc376c48d72a0454ea0dde91602
parent9229523e85304f0e4032f6b64ef064380288c9ee (diff)
disable vectorization which llvm 3.4 has on by default1.8.4
-rw-r--r--tools/shared.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/shared.py b/tools/shared.py
index bd0626dc..90618a97 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -337,7 +337,7 @@ def find_temp_directory():
# we re-check sanity when the settings are changed)
# We also re-check sanity and clear the cache when the version changes
-EMSCRIPTEN_VERSION = '1.8.3'
+EMSCRIPTEN_VERSION = '1.8.4'
def generate_sanity():
return EMSCRIPTEN_VERSION + '|' + get_llvm_target() + '|' + LLVM_ROOT
@@ -1163,6 +1163,7 @@ class Building:
if type(opts) is int:
opts = Building.pick_llvm_opts(opts)
#opts += ['-debug-pass=Arguments']
+ opts += ['-disable-loop-vectorization', '-disable-slp-vectorization']
logging.debug('emcc: LLVM opts: ' + str(opts))
target = out or (filename + '.opt.bc')
output = Popen([LLVM_OPT, filename] + opts + ['-o', target], stdout=PIPE).communicate()[0]