diff options
| author | bors <bors@rust-lang.org> | 2024-07-03 18:52:04 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-07-03 18:52:04 +0000 |
| commit | 2b90614e94cfb400820cfc10fe63b0db74f9e67a (patch) | |
| tree | a51d4dc4c105955b3a8766e7b0b471d8f8ab8c41 /compiler/rustc_mir_transform/src/errors.rs | |
| parent | 1cfd47fe0b78f48a04ac8fce792a406b638da40b (diff) | |
| parent | 76244d4dbc768e15e429c1f66ec021884f369f5f (diff) | |
| download | rust-2b90614e94cfb400820cfc10fe63b0db74f9e67a.tar.gz rust-2b90614e94cfb400820cfc10fe63b0db74f9e67a.zip | |
Auto merge of #127036 - cjgillot:sparse-state, r=oli-obk
Make jump threading state sparse Continuation of https://github.com/rust-lang/rust/pull/127024 Both dataflow const-prop and jump threading involve cloning the state vector a lot. This PR replaces the data structure by a sparse vector, considering: - that jump threading state is typically very sparse (at most 1 or 2 set entries); - that dataflow const-prop is disabled by default; - that place/value map is very eager, and prone to creating an overly large state. The first commit is shared with the previous PR to avoid needless conflicts. r? `@oli-obk`
Diffstat (limited to 'compiler/rustc_mir_transform/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
