13676cafd1dbee3bff3cd0879f799e8666969572
RedundantReloadRemover participates in the state-recycling machinery implemented in cranelift-codegen/src/context.rs, whose goal it is to cache per-pass state so it can be used for compilation of multiple functions without reallocation. Unfortunately RedundantReloadRemover::run simply ignores the cached state and reallocates it new for each function. This patch fixes that. This reduces the number of malloc'd blocks by about 2%.
RedundantReloadRemover::run: use cached state rather than allocating it new for each function. (#1118)
Description
No description provided
Languages
Rust
77.8%
WebAssembly
20.6%
C
1.3%