summaryrefslogtreecommitdiff
path: root/src/wasm2js.h
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2022-02-03 15:55:40 -0800
committerGitHub <noreply@github.com>2022-02-03 15:55:40 -0800
commitac1f664811c3c5a84d2e890802651ab8f3923f76 (patch)
tree058aadb9dec7727efb19b2c0c372579cbef562e4 /src/wasm2js.h
parent22cf8e143a435fec8b4a6bf75adb673e1f5c9dae (diff)
downloadbinaryen-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/wasm2js.h')
0 files changed, 0 insertions, 0 deletions