summaryrefslogtreecommitdiff
path: root/src/wasm2asm.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2017-10-20 10:01:49 -0700
committerGitHub <noreply@github.com>2017-10-20 10:01:49 -0700
commit23808ad092d409c1022b552eddae8093160fd37e (patch)
tree0d7ac01a84f6127af36389746cfd7db814ee1067 /src/wasm2asm.h
parentb66518f2300ed1a9c28f983cbbfb377dcb8502a8 (diff)
downloadbinaryen-23808ad092d409c1022b552eddae8093160fd37e.tar.gz
binaryen-23808ad092d409c1022b552eddae8093160fd37e.tar.bz2
binaryen-23808ad092d409c1022b552eddae8093160fd37e.zip
use simplify-locals in wasm2asm, so the output is not horribly verbose with los of extra inefficient variables. this is more similar to the output we had before the flatten rewrite (#1229)
Diffstat (limited to 'src/wasm2asm.h')
-rw-r--r--src/wasm2asm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wasm2asm.h b/src/wasm2asm.h
index 5d0058f26..028e4d4d5 100644
--- a/src/wasm2asm.h
+++ b/src/wasm2asm.h
@@ -387,6 +387,7 @@ Ref Wasm2AsmBuilder::processWasm(Module* wasm) {
runner.add<AutoDrop>();
runner.add("i64-to-i32-lowering");
runner.add("flatten");
+ runner.add("simplify-locals-notee-nostructure");
runner.add("vacuum");
runner.setDebug(flags.debug);
runner.run();