[][src]Function cranelift_preopt::optimize

pub fn optimize(ctx: &mut Context, isa: &dyn TargetIsa) -> CodegenResult<()>

Optimize the function with available optimizations.

Since this can be resource intensive (and code-size inflating), it is separated from Context::compile to allow DCE to remove it if it's not used.