diff options
author | Alon Zakai <azakai@google.com> | 2022-11-01 17:12:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-02 00:12:29 +0000 |
commit | 25e5aa67bd16f277ad32d42bfbbf7cd130ddf028 (patch) | |
tree | 6156f359bfc057a6e36b38ba7512d2ba317c98a3 /src/passes/OptimizeForJS.cpp | |
parent | a030cc7f69a00dc0e699b8b580224126650c738b (diff) | |
download | binaryen-25e5aa67bd16f277ad32d42bfbbf7cd130ddf028.tar.gz binaryen-25e5aa67bd16f277ad32d42bfbbf7cd130ddf028.tar.bz2 binaryen-25e5aa67bd16f277ad32d42bfbbf7cd130ddf028.zip |
ReorderGlobals pass (#4904)
This sorts globals by their usage (and respecting dependencies). If the module
has very many globals then using smaller LEBs can matter.
If there are fewer than 128 globals then we cannot reduce size, and the pass
exits early (so this pass will not slow down MVP builds, which usually have just
1 global, the stack pointer). But with wasm GC it is common to use globals for
vtables etc., and often there is a very large number of them.
Diffstat (limited to 'src/passes/OptimizeForJS.cpp')
0 files changed, 0 insertions, 0 deletions