-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
add profiling timings for LLVM passes #50951
base: master
Are you sure you want to change the base?
Conversation
PIC->registerAfterPassCallback([isMetaPass](StringRef PassID, Any IR, | ||
const PreservedAnalyses &PassPA) { | ||
if (isMetaPass(PassID)) return; | ||
if (jl_get_pgcstack() == NULL) return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any opinions about this @topolarity
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need the jl_get_pgcstack() == NULL
check any more, but it'd be really nice to implement #50926 (review) so that we're not just hiding LLVM work on its dedicated imaging threads
I'm going to take a whack at that later this week and see if we can land this with full thread visibility 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is needed here because we later explicitly access the ptls.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah you're absolutely right
@topolarity any thoughts about this? Do you think this is good to go as perhaps an intermediate step? It has felt quite useful the times I have tried it out at least. |
This looks pretty good IMO. |
ad51e2b
to
ab2a766
Compare
ab2a766
to
4972838
Compare
A random screenshot of usage: