Function sway_ir::optimize::constants::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.