mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-16 18:20:51 +00:00
This commit adds support for running a gc pass over locals in a function. This will remove dead local declarations for a function (completely unused) as well as compact existing entries to ensure that we don't have two local declarations of the same type. While this was initially intended for some future support of emitting shims in `wasm-bindgen`, it turns out this pass is firing quite a lot over existing functions generated by LLVM. Looks like we may see benefit from this today with slightly smaller wasm binaries!