summaryrefslogtreecommitdiff
path: root/test/control_flow.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2019-04-30 10:48:51 -0700
committerGitHub <noreply@github.com>2019-04-30 10:48:51 -0700
commitfa4e1e5d9bf94c43b9b0b2295476e6b72daa81ff (patch)
treec5db7750291509cc9442ec368600cc160839d7b1 /test/control_flow.cpp
parent28e01f3e832498237d78a64aafc1ee2a26f92bb4 (diff)
downloadbinaryen-fa4e1e5d9bf94c43b9b0b2295476e6b72daa81ff.tar.gz
binaryen-fa4e1e5d9bf94c43b9b0b2295476e6b72daa81ff.tar.bz2
binaryen-fa4e1e5d9bf94c43b9b0b2295476e6b72daa81ff.zip
wasm2js: optimize switches (#2067)
Don't emit unneeded breaks in switch cases, instead do case X: case Y: .. case W: break .. for each group. Also, the group with the default doesn't need any cases but the default itself.
Diffstat (limited to 'test/control_flow.cpp')
0 files changed, 0 insertions, 0 deletions