purescript-backend-optimizer icon indicating copy to clipboard operation
purescript-backend-optimizer copied to clipboard

Float top-level lets

Open natefaubion opened this issue 9 months ago • 0 comments

This floats immediate top-level lets into proper top-level bindings, opening up additional optimizations (as the let no longer potentially blocks inlining) while increasing sharing (we don't have to inline the let bindings too).

This does not do any additional let floating in expressions, it only refactors Convert.purs to facilitate the top-level transformation.

natefaubion avatar Oct 05 '23 14:10 natefaubion