Safe Haskell | None |
---|---|
Language | GHC2021 |
Synopsis
- couldBeSmallEnoughToInline :: UnfoldingOpts -> Int -> CoreExpr -> Bool
- smallEnoughToInline :: UnfoldingOpts -> Unfolding -> Bool
- activeUnfolding :: SimplMode -> Id -> Bool
- callSiteInline :: SimplEnv -> Logger -> Id -> Bool -> [ArgSummary] -> CallCtxt -> Maybe CoreExpr
- data CallCtxt
Cheap and cheerful inlining checks.
couldBeSmallEnoughToInline :: UnfoldingOpts -> Int -> CoreExpr -> Bool Source #
smallEnoughToInline :: UnfoldingOpts -> Unfolding -> Bool Source #
The smart inlining decisions are made by callSiteInline
callSiteInline :: SimplEnv -> Logger -> Id -> Bool -> [ArgSummary] -> CallCtxt -> Maybe CoreExpr Source #