Function sway_ir::optimize::sroa::sroa

source ยท
pub fn sroa(
    context: &mut Context<'_>,
    _analyses: &AnalysisResults,
    function: Function,
) -> Result<bool, IrError>
Expand description

Promote aggregates to scalars, so that other optimizations such as mem2reg can treat them as any other SSA value.