| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
GHC.Core.Opt.Simplify.Inline
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 #
Constructors
| BoringCtxt | |
| RhsCtxt RecFlag | |
| DiscArgCtxt | |
| RuleArgCtxt | |
| ValAppCtxt | |
| CaseCtxt |