diff options
author | Alon Zakai <azakai@google.com> | 2022-02-03 15:55:40 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-03 15:55:40 -0800 |
commit | ac1f664811c3c5a84d2e890802651ab8f3923f76 (patch) | |
tree | 058aadb9dec7727efb19b2c0c372579cbef562e4 /src/wasm-builder.h | |
parent | 22cf8e143a435fec8b4a6bf75adb673e1f5c9dae (diff) | |
download | binaryen-ac1f664811c3c5a84d2e890802651ab8f3923f76.tar.gz binaryen-ac1f664811c3c5a84d2e890802651ab8f3923f76.tar.bz2 binaryen-ac1f664811c3c5a84d2e890802651ab8f3923f76.zip |
wasm-reduce: Add newer passes (#4502)
These might help reduction. Most newer passes, like say --type-refining, are not
going to actually help by themselves without other passes, so those are not added
(they get run in the -O2 etc. modes, which at least gives them a chance to help).
DeadArgumentElimination: Might help by itself, if just removing arguments reduces
code size. In some cases applying constants may increase code size, though, but
the -optimizing variant helps there.
GlobalTypeOptimization: This can remove type fields which can shrink the type
section by a lot. This is the reason I realized I should open this PR, when I
happened to notice that running that pass manually after reduction helped a lot more.
SimplifyGlobals: Can remove unused globals, merge identical immutable ones,
etc., all of which can help code size directly.
Diffstat (limited to 'src/wasm-builder.h')
0 files changed, 0 insertions, 0 deletions