diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-11-05 16:38:34 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-11-05 16:49:24 -0700 |
commit | 5447c53b612c8d0f0d0902efe5053f2f81bd1595 (patch) | |
tree | e5f28cd40348a1d5de553e559b378066af2bcf63 /src/passes/pass.cpp | |
parent | 13ce3488333f70607411eb504ea2046fe2dc7c6d (diff) | |
download | binaryen-5447c53b612c8d0f0d0902efe5053f2f81bd1595.tar.gz binaryen-5447c53b612c8d0f0d0902efe5053f2f81bd1595.tar.bz2 binaryen-5447c53b612c8d0f0d0902efe5053f2f81bd1595.zip |
add variants of simplify-locals with and without teeing and structural opts
Diffstat (limited to 'src/passes/pass.cpp')
-rw-r--r-- | src/passes/pass.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/passes/pass.cpp b/src/passes/pass.cpp index d5dc35718..4dc21ace0 100644 --- a/src/passes/pass.cpp +++ b/src/passes/pass.cpp @@ -91,6 +91,9 @@ void PassRegistry::registerPasses() { registerPass("reorder-functions", "sorts functions by access frequency", createReorderFunctionsPass); registerPass("reorder-locals", "sorts locals by access frequency", createReorderLocalsPass); registerPass("simplify-locals", "miscellaneous locals-related optimizations", createSimplifyLocalsPass); + registerPass("simplify-locals-notee", "miscellaneous locals-related optimizations", createSimplifyLocalsNoTeePass); + registerPass("simplify-locals-nostructure", "miscellaneous locals-related optimizations", createSimplifyLocalsNoStructurePass); + registerPass("simplify-locals-notee-nostructure", "miscellaneous locals-related optimizations", createSimplifyLocalsNoTeeNoStructurePass); registerPass("vacuum", "removes obviously unneeded code", createVacuumPass); registerPass("precompute", "computes compile-time evaluatable expressions", createPrecomputePass); // registerPass("lower-i64", "lowers i64 into pairs of i32s", createLowerInt64Pass); |