summaryrefslogtreecommitdiff
path: root/src/passes/DeadArgumentElimination.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2021-11-10 13:40:34 -0800
committerGitHub <noreply@github.com>2021-11-10 21:40:34 +0000
commita113d39fe87e098c5b19ca75002b6995a3f69e3e (patch)
tree3002447053ed49d3248a80e43d51b3c7e4d635e8 /src/passes/DeadArgumentElimination.cpp
parent7075d2e217d67a7a8ec76927817300f801a57b22 (diff)
downloadbinaryen-a113d39fe87e098c5b19ca75002b6995a3f69e3e.tar.gz
binaryen-a113d39fe87e098c5b19ca75002b6995a3f69e3e.tar.bz2
binaryen-a113d39fe87e098c5b19ca75002b6995a3f69e3e.zip
Add GlobalSubtyping pass (#4306)
This specializes the fields of structs based on the types written to them. That is, if a field is of type A but in practice we always write some subtype B to it then we can change the type of the field to that. On j2wasm this manages to improve at least one field in 2% of types. Not a large amount, but this does lead to further benefits in later opts (e.g. about a third of the improvements are to turn a field non-nullable).
Diffstat (limited to 'src/passes/DeadArgumentElimination.cpp')
0 files changed, 0 insertions, 0 deletions