Skip to main content

optimization_dependencies

Function optimization_dependencies 

Source
pub fn optimization_dependencies(
    source: &str,
) -> Vec<(&'static str, &'static str)>
Expand description

The per-program DEPENDENCY edges for source, discovered by evaluating with all optimizations on and probing: disabling a fired optimization dep that makes another fired optimization dependent STOP firing means dependent depended on dep for this program. Stops already explained by a declared requires-cascade (normalize would disable the dependent anyway) are excluded — those are captured by the static registry graph. What remains are the EMERGENT, program-specific dependencies (e.g. dead-code elimination only had work because scalarization produced the dead code): returned as (dependent, dep) keyword pairs, sorted and deduped (deterministic).

This is offline analysis (one compile per fired optimization) — it is baked into the benchmark data, never run in the hot path.