Function promote_locals

Source
pub fn promote_locals(
    context: &mut Context<'_>,
    analyses: &AnalysisResults,
    function: Function,
) -> Result<bool, IrError>
Expand description

Promote locals to registers. We promote only locals of copy types, whose every use is in a get_local without offsets, and the result of such a get_local is used only in a load or a store.