sway_ir::optimize::constants

Function fold_constants

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

Find constant expressions which can be reduced to fewer operations.