summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-05-19 15:40:23 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-05-19 15:46:18 -0700
commitfe1bda7da797e5586d39122aec931a8a84df4ac7 (patch)
treeee056db222a948610839ae204e0311b0854c36fe /src
parent322e89791721ce5130242c87eb1c01163f0ad21d (diff)
downloadbinaryen-fe1bda7da797e5586d39122aec931a8a84df4ac7.tar.gz
binaryen-fe1bda7da797e5586d39122aec931a8a84df4ac7.tar.bz2
binaryen-fe1bda7da797e5586d39122aec931a8a84df4ac7.zip
vacuum after passes that create garbage; this makes the total time better
Diffstat (limited to 'src')
-rw-r--r--src/passes/pass.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/passes/pass.cpp b/src/passes/pass.cpp
index c4d16347c..1ff277902 100644
--- a/src/passes/pass.cpp
+++ b/src/passes/pass.cpp
@@ -62,11 +62,13 @@ void PassRunner::addDefaultOptimizationPasses() {
add("remove-unused-names");
add("optimize-instructions");
add("simplify-locals");
+ add("vacuum"); // previous pass creates garbage
add("coalesce-locals");
+ add("vacuum"); // previous pass creates garbage
add("reorder-locals");
- add("vacuum");
add("merge-blocks");
add("optimize-instructions");
+ add("vacuum"); // should not be needed, last few passes do not create garbage, but just to be safe
}
void PassRunner::run() {