Skip to content
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

make statement_costs! accept IRCode #41257

Merged
merged 1 commit into from
Jun 18, 2021
Merged

Conversation

simeonschaub
Copy link
Member

I want to use this in Cthulhu, which uses IRCode for optimized code
instead of CodeInfo.

I want to use this in Cthulhu, which uses `IRCode` for optimized code
instead of `CodeInfo`.
@simeonschaub simeonschaub merged commit 083272b into master Jun 18, 2021
@simeonschaub simeonschaub deleted the sds/statement_costs branch June 18, 2021 08:10
simeonschaub added a commit to JuliaDebug/Cthulhu.jl that referenced this pull request Jun 23, 2021
This allows printing inlining costs alongside optimized IR similar to
`Base.print_statement_costs`, which I found useful for debugging why
some functions are not inlined. They are highlighted green, because I
found them hard to distinguish otherwise, but I am open to suggestions
regarding formatting. This relies on JuliaLang/julia#41257, which I hope
can be backported to 1.7, so we don't have to worry about compatibility.
KristofferC pushed a commit that referenced this pull request Jun 26, 2021
I want to use this in Cthulhu, which uses `IRCode` for optimized code
instead of `CodeInfo`.

(cherry picked from commit 083272b)
johanmon pushed a commit to johanmon/julia that referenced this pull request Jul 5, 2021
I want to use this in Cthulhu, which uses `IRCode` for optimized code
instead of `CodeInfo`.
aviatesk added a commit to JuliaDebug/Cthulhu.jl that referenced this pull request Jul 22, 2021
* add option to print inlining costs

This allows printing inlining costs alongside optimized IR similar to
`Base.print_statement_costs`, which I found useful for debugging why
some functions are not inlined. They are highlighted green, because I
found them hard to distinguish otherwise, but I am open to suggestions
regarding formatting. This relies on JuliaLang/julia#41257, which I hope
can be backported to 1.7, so we don't have to worry about compatibility.

* don't fix necessary typo

* fix

* passing on `inline_cost` config when descending

* add warning message

Co-authored-by: Shuhei Kadowaki <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants