diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-10-29 15:46:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-29 15:46:54 -0700 |
commit | c8f1c1fc99905e286c15538957e24545a5c72536 (patch) | |
tree | 80d88d86aeab538cd82c811d6f6f4cc39e42cd03 /src/passes/pass.cpp | |
parent | adc568e7d0bde50419a0bae8a96f7dbb0f69cf4d (diff) | |
download | binaryen-c8f1c1fc99905e286c15538957e24545a5c72536.tar.gz binaryen-c8f1c1fc99905e286c15538957e24545a5c72536.tar.bz2 binaryen-c8f1c1fc99905e286c15538957e24545a5c72536.zip |
add an inlining pass (#814)
Diffstat (limited to 'src/passes/pass.cpp')
-rw-r--r-- | src/passes/pass.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/passes/pass.cpp b/src/passes/pass.cpp index f88e6675d..c8704db89 100644 --- a/src/passes/pass.cpp +++ b/src/passes/pass.cpp @@ -69,6 +69,7 @@ void PassRegistry::registerPasses() { registerPass("dce", "removes unreachable code", createDeadCodeEliminationPass); registerPass("duplicate-function-elimination", "removes duplicate functions", createDuplicateFunctionEliminationPass); registerPass("extract-function", "leaves just one function (useful for debugging)", createExtractFunctionPass); + registerPass("inlining", "inlines functions (currently only ones with a single use)", createInliningPass); registerPass("legalize-js-interface", "legalizes i64 types on the import/export boundary", createLegalizeJSInterfacePass); registerPass("merge-blocks", "merges blocks to their parents", createMergeBlocksPass); registerPass("metrics", "reports metrics", createMetricsPass); |