Skip to content

[RFC] Log a backtrace on entrance to type inference (option 1) #58123

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

timholy
Copy link
Member

@timholy timholy commented Apr 15, 2025

This is needed to eliminate the Core.Compiler.Timings module while still keeping SnoopCompile working.

This is one mechanism to add a backtrace to each entrance to inference. An alternative approach is presented in #58124. Only one of these should be merged.

This is needed to eliminate the `Core.Compiler.Timings` module while
still keeping SnoopCompile working.
@topolarity
Copy link
Member

What's this back-trace used for?

@timholy
Copy link
Member Author

timholy commented Apr 15, 2025

SnoopCompile has analysis for inference triggers to help find and eliminate dynamic dispatch. The backtrace is used to link the callee to the caller across the dynamic dispatch.

@timholy
Copy link
Member Author

timholy commented Apr 15, 2025

I should mention that I personally think #58124 is the better design.

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.

2 participants