Skip to main content

optimize

Function optimize 

Source
pub fn optimize(
    pool: &ExprPool,
    builtins: &BuiltinSymbols,
    id: ExprId,
) -> ExprId
Expand description

Full local optimization run (spec §10.2): const_fold then cse. Used by the JIT compiler before translating the DAG to bytecode.