summaryrefslogtreecommitdiff
path: root/test/wasm2js/nested-selects.2asm.js
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2024-05-29 09:48:34 -0700
committerGitHub <noreply@github.com>2024-05-29 09:48:34 -0700
commit525f0761496c6aafea80a2d2e8cb709515eb06c5 (patch)
tree0b6a82561377b86b68697b65c3021c29212e4ee3 /test/wasm2js/nested-selects.2asm.js
parentfc48efe380c0d3360db17a54f0cdd0267d8ee1cf (diff)
downloadbinaryen-525f0761496c6aafea80a2d2e8cb709515eb06c5.tar.gz
binaryen-525f0761496c6aafea80a2d2e8cb709515eb06c5.tar.bz2
binaryen-525f0761496c6aafea80a2d2e8cb709515eb06c5.zip
Run RemoveUnneededModuleElements early (#6620)
Doing it before anything else can help a lot if there is a significant amount of dead code that can be removed, as it saves work for all the later passes. We did run this pass if GC was enabled just a few passes later down, but even so it is worthwhile to run it an additional time, and it makes sense to do even without GC (though in typical optimized LLVM outputs there will be little dead code). If there is no dead code then this is wasted work, but this is a fairly fast pass, and I measure no significant slowdown due to this. E.g. on the 35 MB clang.wasm (which is already optimized, so little dead code) it takes around a second, while all of -O2 takes almost two minutes, so the difference is just 1%. On J2CL I measure a 15% speedup in -O3 --closed-world -tnh, and also the binary is 2.5% smaller, which means there is less work for later cycles of -O3.
Diffstat (limited to 'test/wasm2js/nested-selects.2asm.js')
0 files changed, 0 insertions, 0 deletions