summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2018-04-30 11:19:10 -0700
committerGitHub <noreply@github.com>2018-04-30 11:19:10 -0700
commit032ddd6a88bf608953c76422c317eb5aa875985e (patch)
treea7613289bcc72230175610971c75d1ff8b266dbf /src
parent23f53674fc7aed90313cc70cbdde7dffa0ea6a5b (diff)
downloadbinaryen-032ddd6a88bf608953c76422c317eb5aa875985e.tar.gz
binaryen-032ddd6a88bf608953c76422c317eb5aa875985e.tar.bz2
binaryen-032ddd6a88bf608953c76422c317eb5aa875985e.zip
do more optimizations after inlining: precompute-propagate plus all regular opts (#1523)
Diffstat (limited to 'src')
-rw-r--r--src/passes/Inlining.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/passes/Inlining.cpp b/src/passes/Inlining.cpp
index 0c211e786..5de214338 100644
--- a/src/passes/Inlining.cpp
+++ b/src/passes/Inlining.cpp
@@ -362,16 +362,8 @@ struct Inlining : public Pass {
PassRunner runner(module, parentRunner->options);
runner.setIsNested(true);
runner.setValidateGlobally(false); // not a full valid module
- runner.add("precompute-propagate");
- runner.add("remove-unused-brs");
- runner.add("remove-unused-names");
- runner.add("coalesce-locals");
- runner.add("simplify-locals");
- runner.add("vacuum");
- runner.add("reorder-locals");
- runner.add("remove-unused-brs");
- runner.add("merge-blocks");
- runner.add("vacuum");
+ runner.add("precompute-propagate"); // this is especially useful after inlining
+ runner.addDefaultFunctionOptimizationPasses(); // do all the usual stuff
runner.run();
// restore all the funcs
for (auto& func : module->functions) {