Documentation

Lean.Compiler.IR.ResetReuse

Remark: the insertResetReuse transformation is applied before we have inserted inc/dec instructions, and performed lower level optimizations that introduce the instructions release and set.

Remark: the functions S, D and R defined here implement the corresponding functions in the paper "Counting Immutable Beans"

Here are the main differences:

@[inline, reducible]

We use Context to track join points in scope.

Equations
Instances For
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For