diff options
author | Alon Zakai <alonzakai@gmail.com> | 2018-03-19 12:56:07 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-19 12:56:07 -0700 |
commit | 9c9b78db2e6ce178cc0c546d59aacaa4c72c001b (patch) | |
tree | 4b130209b6641f47304299c311a36f07caaca795 /src/passes/pass.cpp | |
parent | c52f23608e33ab972cfa187409e8c78793103d4b (diff) | |
download | binaryen-9c9b78db2e6ce178cc0c546d59aacaa4c72c001b.tar.gz binaryen-9c9b78db2e6ce178cc0c546d59aacaa4c72c001b.tar.bz2 binaryen-9c9b78db2e6ce178cc0c546d59aacaa4c72c001b.zip |
fix a fuzz bug in fpcast-emu: if the call_indirect we are modifying is unreachable, the modified version is as well (#1481)
Diffstat (limited to 'src/passes/pass.cpp')
-rw-r--r-- | src/passes/pass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/pass.cpp b/src/passes/pass.cpp index 6518a6f3d..be7365998 100644 --- a/src/passes/pass.cpp +++ b/src/passes/pass.cpp @@ -98,7 +98,6 @@ void PassRegistry::registerPasses() { registerPass("print-minified", "print in minified s-expression format", createMinifiedPrinterPass); registerPass("print-full", "print in full s-expression format", createFullPrinterPass); registerPass("print-call-graph", "print call graph", createPrintCallGraphPass); - registerPass("rse", "remove redundant set_locals", createRedundantSetEliminationPass); registerPass("relooper-jump-threading", "thread relooper jumps (fastcomp output only)", createRelooperJumpThreadingPass); registerPass("remove-imports", "removes imports and replaces them with nops", createRemoveImportsPass); registerPass("remove-memory", "removes memory segments", createRemoveMemoryPass); @@ -108,6 +107,7 @@ void PassRegistry::registerPasses() { registerPass("reorder-functions", "sorts functions by access frequency", createReorderFunctionsPass); registerPass("reorder-locals", "sorts locals by access frequency", createReorderLocalsPass); registerPass("rereloop", "re-optimize control flow using the relooper algorithm", createReReloopPass); + registerPass("rse", "remove redundant set_locals", createRedundantSetEliminationPass); registerPass("simplify-locals", "miscellaneous locals-related optimizations", createSimplifyLocalsPass); registerPass("safe-heap", "instrument loads and stores to check for invalid behavior", createSafeHeapPass); registerPass("simplify-locals-notee", "miscellaneous locals-related optimizations", createSimplifyLocalsNoTeePass); |