diff options
author | Thomas Lively <tlively@google.com> | 2024-09-16 17:22:22 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-17 00:22:22 +0000 |
commit | 34ad6a7598e662e9ff357987f2c81fde1e05c522 (patch) | |
tree | 38cffc081804945cc8ce2b367decda9e1bea753e /test/lit/wasm-split/basic.wast | |
parent | 92923108b4bb5da059c0ddd46b254234a9d1c7a5 (diff) | |
download | binaryen-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 'test/lit/wasm-split/basic.wast')
-rw-r--r-- | test/lit/wasm-split/basic.wast | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/test/lit/wasm-split/basic.wast b/test/lit/wasm-split/basic.wast index 99bf17260..1390f1a63 100644 --- a/test/lit/wasm-split/basic.wast +++ b/test/lit/wasm-split/basic.wast @@ -174,7 +174,6 @@ ;; KEEP-BOTH-PRIMARY-NEXT: ) ;; KEEP-BOTH-SECONDARY: (module -;; KEEP-BOTH-SECONDARY-NEXT: (import "primary" "%table" (table $table 1 1 funcref)) ;; KEEP-BOTH-SECONDARY-NEXT: ) ;; SPLIT-BAR-SUPERSEDE: warning: function bar was to be kept in primary module. However it will now be split out into secondary module. |