sway_ir::optimize::dce

Function dce

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

Perform dead code (if any) elimination and return true if the function is modified.