Files
rust/compiler
bors c7aa99f36c Auto merge of #142881 - cjgillot:minimap, r=saethlin
JumpThreading: compute place and value indices on-demand

Profiling JumpThreading reveals that a large part of the runtime happens constructing the place and value `Map`. This is unfortunate, as jump-threading may end up not even doing anything.

The cause for this large up-front cost is following: `Map` attempts to create a `PlaceIndex` for each place that *may* hold a relevant value. This means all places that appear in MIR, but also all places whose value is accessed by a projection of a copy of a larger place.

This PR refactors the creation of `Map` to happen on-demand: place and value indices are created when threading computation happens.

The up-front mode is still relevant for DataflowConstProp, so is not touched.
2025-12-27 03:12:17 +00:00
..
2025-12-19 15:04:30 -08:00
2025-12-22 16:50:41 +01:00
2025-10-12 08:08:30 +00:00
2025-12-09 13:40:18 +00:00
2025-09-26 17:53:49 +02:00
2025-12-25 17:09:48 +08:00
2025-12-26 13:12:56 +00:00