summaryrefslogtreecommitdiff
path: root/src/passes/RemoveUnusedModuleElements.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2022-09-26 15:11:22 -0700
committerGitHub <noreply@github.com>2022-09-26 15:11:22 -0700
commiteb42407e6bc027a40cc569ad0c1b915c4f285b60 (patch)
tree03ba08b7a3142bbceea1d1e17445f66ebe27531e /src/passes/RemoveUnusedModuleElements.cpp
parentb23b47d54a2fb02b048e7eb8de8043358599ec8b (diff)
downloadbinaryen-eb42407e6bc027a40cc569ad0c1b915c4f285b60.tar.gz
binaryen-eb42407e6bc027a40cc569ad0c1b915c4f285b60.tar.bz2
binaryen-eb42407e6bc027a40cc569ad0c1b915c4f285b60.zip
[GUFA] Optimize functions not taken by reference better (#5085)
This moves the logic to add connections from signatures to functions from the top level into the RefFunc logic. That way we only add those connections to functions that actually have a RefFunc, which avoids us thinking that a function without one can be reached by a call_ref of its type. Has a small but non-zero benefit on j2wasm.
Diffstat (limited to 'src/passes/RemoveUnusedModuleElements.cpp')
0 files changed, 0 insertions, 0 deletions