summaryrefslogtreecommitdiff
path: root/src/passes/GlobalStructInference.cpp
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2024-09-16 17:22:22 -0700
committerGitHub <noreply@github.com>2024-09-17 00:22:22 +0000
commit34ad6a7598e662e9ff357987f2c81fde1e05c522 (patch)
tree38cffc081804945cc8ce2b367decda9e1bea753e /src/passes/GlobalStructInference.cpp
parent92923108b4bb5da059c0ddd46b254234a9d1c7a5 (diff)
downloadbinaryen-34ad6a7598e662e9ff357987f2c81fde1e05c522.tar.gz
binaryen-34ad6a7598e662e9ff357987f2c81fde1e05c522.tar.bz2
binaryen-34ad6a7598e662e9ff357987f2c81fde1e05c522.zip
[wasm-split] Run RemoveUnusedElements on secondary modules (#6945)
Rather than analyze what module elements from the primary module a secondary module will need, the splitting logic conservatively imports all module elements from the primary module into the secondary module. Run RemoveUnusedElements on the secondary module to remove any of these imports that happen to be unnecessary. Leave a TODO mentioning the possibility of being more selective about which module elements get exported to reduce code size in the primary module, too.
Diffstat (limited to 'src/passes/GlobalStructInference.cpp')
0 files changed, 0 insertions, 0 deletions