diff options
author | Alon Zakai <azakai@google.com> | 2019-07-11 08:55:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-11 08:55:00 -0700 |
commit | 03f3528f2f216378537988d22c66e4e22d2ddda3 (patch) | |
tree | a414c2a8e16213ea5a10dc4b0c5280ffcde5bbd5 /scripts/fuzz_shell.js | |
parent | 1a9b0e166a747fefbf0502318e6c2cc27669f3a1 (diff) | |
download | binaryen-03f3528f2f216378537988d22c66e4e22d2ddda3.tar.gz binaryen-03f3528f2f216378537988d22c66e4e22d2ddda3.tar.bz2 binaryen-03f3528f2f216378537988d22c66e4e22d2ddda3.zip |
Optimize if of br_if (#2216)
An if whose body is a br_if can be turned into a br_if of a combined condition (if side effects allow it).
The naive size in bytes is identical between the patterns, but the select may avoid a hardware branch, and also the select may be further optimized. On the benchmark suite this helps every single benchmark, but by quite small amounts (e.g. 100 bytes on sqlite, which is 1MB).
This was noticed in emscripten-core/emscripten#8941
Diffstat (limited to 'scripts/fuzz_shell.js')
0 files changed, 0 insertions, 0 deletions