Use new regalloc.rs version with dense vreg->rreg maps.

This PR updates Cranelift to use the new version of regalloc.rs
(bytecodealliance/regalloc.rs#55) that provides dense vreg->rreg maps to
the `map_reg()` function for each instruction, rather than the earlier
hashmap-based approach.

In one test (regex-rs.wasm), this PR results in a 15% reduction in
memory allocations (1245MB -> 1060MB) as measured by DHAT on `clif-util
wasm` runs.
This commit is contained in:
Chris Fallin
2020-04-27 20:49:59 -07:00
parent 738e2742da
commit be6f060abf
5 changed files with 186 additions and 191 deletions

4
Cargo.lock generated
View File

@@ -1538,9 +1538,9 @@ dependencies = [
[[package]]
name = "regalloc"
version = "0.0.20"
version = "0.0.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "75d8659dfee0d5b4c06022ab25e3efda0737a2a1798f9c33d0c0a147a740db86"
checksum = "b27b256b41986ac5141b37b8bbba85d314fbf546c182eb255af6720e07e4f804"
dependencies = [
"log",
"rustc-hash",