summaryrefslogtreecommitdiff
path: root/src/wasm/wasm-s-parser.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2021-03-24 11:39:32 -0700
committerGitHub <noreply@github.com>2021-03-24 11:39:32 -0700
commit17684a20196194d6b0a930b4bd10688f9e2d3fa8 (patch)
tree676300449b6cfd4d260e5d4accd3d34d092dc975 /src/wasm/wasm-s-parser.cpp
parent0b0e20f9802afa2f74a896853b4c1be4d3f49f1e (diff)
downloadbinaryen-17684a20196194d6b0a930b4bd10688f9e2d3fa8.tar.gz
binaryen-17684a20196194d6b0a930b4bd10688f9e2d3fa8.tar.bz2
binaryen-17684a20196194d6b0a930b4bd10688f9e2d3fa8.zip
[Wasm GC] Optimize BrOn* of the wrong kind (#3724)
#3719 optimized the case where the kind is what we want, like br_on_func of a function. This handles the opposite case, where we know the kind is wrong, and so the break is not taken. This seems equally useful for "polymorphic" code that does a bunch of checks and routes to different code for each case, as after inlining or other optimizations we may see which paths are taken and which are not. Also refactor the checking code to a shared location as RefIs/As will also want to use it.
Diffstat (limited to 'src/wasm/wasm-s-parser.cpp')
0 files changed, 0 insertions, 0 deletions