erg_compiler

Module optimize

Source

Structsยง

  • Optimizes a HIR. This should not be used in the context of sequential execution (e.g. REPL), since it assumes that the given code is all there is. The optimizer determines the optimization level using opt_level in cfg: ErgConfig.