StgLiftLams.Transformation

ghc-8.8.4: The GHC API

Safe Haskell | None
Language | Haskell2010

StgLiftLams.Transformation

Description

(Mostly) textbook instance of the lambda lifting transformation, selecting which bindings to lambda lift by consulting `goodToLift`.

Synopsis

- stgLiftLams :: DynFlags -> UniqSupply -> [InStgTopBinding] -> [OutStgTopBinding]

# Documentation

stgLiftLams :: DynFlags -> UniqSupply -> [InStgTopBinding] -> [OutStgTopBinding] Source #

Lambda lifts bindings to top-level deemed worth lifting (see `goodToLift`).