Module tvix_eval::compiler::optimiser

source ยท
Expand description

Helper functions for extending the compiler with more linter-like functionality while compiling (i.e. smarter warnings).

Enumsยง

Functionsยง

  • is_lit_bool ๐Ÿ”’
    Is this a literal boolean, or something else?
  • optimise_bin_op ๐Ÿ”’
    Detect useless binary operations (i.e. useless bool comparisons).
  • optimise_expr ๐Ÿ”’
    Optimise the given expression where possible.