-
Notifications
You must be signed in to change notification settings - Fork 12
Inlining, no inline, inlinable, pragmas chapter #44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Bonus: try to correlate to too much improper inlining to more pressure on instruction caches which then cause reigster spills. Would be great to get numbers on this! |
be sure to mention the part about also: https://gitlab.haskell.org/ghc/ghc/-/wikis/commentary/compiler/core-to-core-pipeline |
See this ticket as a case study: https://gitlab.haskell.org/ghc/ghc/-/issues/23122#note_487215 and also a good example of reading core and join point manipulation. |
Also this ticket on the implications of The basic gist is that INLINEABLE stores the unoptimized unfolding so that it can be later optimized is say another package, whereas |
Also this ticket which contemplates the consequences of INLINE: https://gitlab.haskell.org/ghc/ghc/-/issues/23823 One major one being that with an INLINE pragma the float out pass is skipped |
Show core and stg.
The text was updated successfully, but these errors were encountered: