Skip to content

Track PGO profiles in depinfo#100801

Merged
bors merged 1 commit intorust-lang:masterfrom
Kobzol:track-pgo-profile-paths
Sep 7, 2022
Merged

Track PGO profiles in depinfo#100801
bors merged 1 commit intorust-lang:masterfrom
Kobzol:track-pgo-profile-paths

Conversation

@Kobzol
Copy link
Member

@Kobzol Kobzol commented Aug 20, 2022

This PR makes sure that PGO profiles (-Cprofile-use and -Cprofile-sample-use) are tracked in depinfo, so that when they change, the compilation session will be invalidated.

This approach was discussed on Zulip.

I tried it locally and it seems that the code is recompiled just with this change, and #100413 is not even needed. But it's possible that not everything required is recompiled, so we will probably want to land both changes.

Another approach to implement this could be to store the PGO profiles in sess.parse_sess.file_depinfo when the session is being created, but then the paths would have to be converted to a string and then to a symbol, which seemed unnecessarily complicated.

CC @michaelwoerister

r? @Eh2406

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged-by-bors This PR was explicitly merged by bors. perf-regression Performance regression. perf-regression-triaged The performance regression has been triaged. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants