diff options
author | Alon Zakai <azakai@google.com> | 2021-09-13 14:27:10 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-13 14:27:10 -0700 |
commit | 181b0e7037bc2999a24cb45a02523f3da04b254d (patch) | |
tree | 6f03f5577b2b819cd6bcfd03f6533f146e05f8bd /src/wasm/wasm-stack.cpp | |
parent | ec2c5df877c479855bd13d280b98220e50bb99f9 (diff) | |
download | binaryen-181b0e7037bc2999a24cb45a02523f3da04b254d.tar.gz binaryen-181b0e7037bc2999a24cb45a02523f3da04b254d.tar.bz2 binaryen-181b0e7037bc2999a24cb45a02523f3da04b254d.zip |
RemoveUnusedBrs::tablify() improvements: handle EqZ and tee (#4144)
tablify() attempts to turns a sequence of br_ifs into a single
br_table. This PR adds some flexibility to the specific pattern it
looks for, specifically:
* Accept i32.eqz as a comparison to zero, and not just to look
for i32.eq against a constant.
* Allow the first condition to be a tee. If it is, compare later
conditions to local.get of that local.
This will allow more br_tables to be emitted in j2cl output.
Diffstat (limited to 'src/wasm/wasm-stack.cpp')
0 files changed, 0 insertions, 0 deletions