sway_ir::optimize::sroa

Function 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.