diff options
author | Alon Zakai <azakai@google.com> | 2019-11-19 08:41:25 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-19 08:41:25 -0800 |
commit | 365e6f239926e3da640014237b5420895ec247b9 (patch) | |
tree | 91979baf53d7a41712cd8bc2a7a9d76fc99f5ef5 /scripts/test/support.py | |
parent | 9d21a951dfc60a0fed861763f50f4130dd0a42b6 (diff) | |
download | binaryen-365e6f239926e3da640014237b5420895ec247b9.tar.gz binaryen-365e6f239926e3da640014237b5420895ec247b9.tar.bz2 binaryen-365e6f239926e3da640014237b5420895ec247b9.zip |
Optimize away invoke_ calls where possible (#2442)
When we see invoke_ calls in emscripten-generated code, we know
they call into JS just to do a try-catch for exceptions. If the target being
called cannot throw, which we check in a whole-program manner, then
we can simply skip the invoke.
I confirmed that this fixes the regression in emscripten-core/emscripten#9817 (comment)
(that is, with this optimization, upstream is around as fast as fastcomp).
When we have native wasm exception handling, this can be
extended to optimize that as well.
Diffstat (limited to 'scripts/test/support.py')
0 files changed, 0 insertions, 0 deletions