Skip to main content

pressure_profile

Function pressure_profile 

Source
pub fn pressure_profile(spec: &RegSpec) -> Vec<usize>
Expand description

Register pressure sampled at each instruction in tmin..tmax: profile[i] is how many variables are live at instruction tmin + i. Its maximum is the register pressure (the fewest registers the block could ever need), which is what the budget line is drawn against — wherever the profile rises above the budget, spilling is unavoidable.