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 /scripts | |
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 'scripts')
-rwxr-xr-x | scripts/fuzz_opt.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/fuzz_opt.py b/scripts/fuzz_opt.py index 9ccdeb1e4..17d6301dd 100755 --- a/scripts/fuzz_opt.py +++ b/scripts/fuzz_opt.py @@ -172,6 +172,7 @@ IMPORTANT_INITIAL_CONTENTS = [ # Recently-added or modified passes. These can be added to and pruned # frequently. os.path.join('lit', 'passes', 'once-reduction.wast'), + os.path.join('passes', 'remove-unused-brs_enable-multivalue.wast'), ] IMPORTANT_INITIAL_CONTENTS = [os.path.join(shared.get_test_dir('.'), t) for t in IMPORTANT_INITIAL_CONTENTS] |