diff options
| author | bors <bors@rust-lang.org> | 2025-09-19 12:15:03 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-09-19 12:15:03 +0000 |
| commit | e10aa8891182378de002bd71bf4d04181fb8231d (patch) | |
| tree | 5ffb3b69a8c42cacb434c2cd767a44027884d261 /Cargo.lock | |
| parent | 2f4dfc753fd86c672aa4145940db075a8a149f17 (diff) | |
| parent | df04be8cf744b500b5972fdc76898a96067d5517 (diff) | |
| download | rust-e10aa8891182378de002bd71bf4d04181fb8231d.tar.gz rust-e10aa8891182378de002bd71bf4d04181fb8231d.zip | |
Auto merge of #145737 - cjgillot:gvn-valueset, r=saethlin
GVN: stop hashing opaque values GVN generates values that are not meant to be unified with any other. For instance `Opaque` (aka we don't know anything), non-deterministic constants and borrows. The current algorithm generates a unique index, so the generated `Value` will be different from all the existing. This is wasteful, as we should not hash that `Value` at all. This PR proposes to do this. This involves partially reimplementing a `FxIndexSet`, but yields a small but consistent perf improvement (https://github.com/rust-lang/rust/pull/145737#issuecomment-3276951054).
Diffstat (limited to 'Cargo.lock')
| -rw-r--r-- | Cargo.lock | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Cargo.lock b/Cargo.lock index 4d1c6d4c46b..6ff52d500f4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4235,6 +4235,7 @@ name = "rustc_mir_transform" version = "0.0.0" dependencies = [ "either", + "hashbrown", "itertools", "rustc_abi", "rustc_arena", |
