summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wasm2js.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wasm2js.h b/src/wasm2js.h
index 18175d443..385f8877e 100644
--- a/src/wasm2js.h
+++ b/src/wasm2js.h
@@ -291,10 +291,11 @@ Ref Wasm2JSBuilder::processWasm(Module* wasm, Name funcName) {
// Finally, get the code into the flat form we need for wasm2js itself, and
// optimize that a little in a way that keeps flat property.
runner.add("flatten");
+ runner.add("remove-unused-names");
+ runner.add("merge-blocks");
runner.add("simplify-locals-notee-nostructure");
- // TODO: coalesce-locals?
+ runner.add("coalesce-locals");
runner.add("reorder-locals");
- runner.add("remove-unused-names");
runner.add("vacuum");
runner.add("remove-unused-module-elements");
runner.setDebug(flags.debug);