summaryrefslogtreecommitdiff
path: root/scripts/test/generate_lld_tests.py
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2019-11-19 08:41:25 -0800
committerGitHub <noreply@github.com>2019-11-19 08:41:25 -0800
commit365e6f239926e3da640014237b5420895ec247b9 (patch)
tree91979baf53d7a41712cd8bc2a7a9d76fc99f5ef5 /scripts/test/generate_lld_tests.py
parent9d21a951dfc60a0fed861763f50f4130dd0a42b6 (diff)
downloadbinaryen-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/generate_lld_tests.py')
0 files changed, 0 insertions, 0 deletions