You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CL https://golang.org/cl/451292 adds a default profile of the compiler, so we can build the compiler with PGO. As the compiler's source code evolves, we may want to periodically update the profile.
We discussed this in the release team meeting today. The plan is to add this as a relui step, to be performed as part of creating rc1. We can also run the step as a one-off if necessary (e.g., after any major compiler refactoring).
Ideally we can shrink the profile a little. Currently it's ~350K, which is just big enough to be a little annoying to update regularly in git.
changed the title [-]cmd/compile: periodically update compiler's PGO profile[/-][+]cmd/compile: update compiler's PGO profile as part of rc1 relui flow[/+]on May 23, 2023
We should discuss whether to try to get it done for this cycle. On the one hand it's not very necessary, but on the other it might be best to strike while the iron is hot.
changed the title [-]cmd/compile: update compiler's PGO profile as part of rc1 relui flow[/-][+]cmd/compile, x/build/cmd/relui: update compiler's PGO profile as part of rc1 relui flow[/+]on May 25, 2023
changed the title [-]cmd/compile, x/build/cmd/relui: update compiler's PGO profile as part of rc1 relui flow[/-][+]cmd/compile: update compiler's PGO profile[/+]on Jun 11, 2025
Attempted to do it in CL 728121 for Go 1.26. The improvement is very small with the new profile. And that CL triggered a compiler failure with the GOEXPERIMENT=newinliner. We can skip updating for 1.26.
We should look into the failure with newinliner. But it is a separate issue and doesn't block Go 1.26 release.
Activity
aclements commentedon May 23, 2023
We discussed this in the release team meeting today. The plan is to add this as a relui step, to be performed as part of creating rc1. We can also run the step as a one-off if necessary (e.g., after any major compiler refactoring).
Ideally we can shrink the profile a little. Currently it's ~350K, which is just big enough to be a little annoying to update regularly in git.
cc @golang/release
[-]cmd/compile: periodically update compiler's PGO profile[/-][+]cmd/compile: update compiler's PGO profile as part of rc1 relui flow[/+]heschi commentedon May 23, 2023
We should discuss whether to try to get it done for this cycle. On the one hand it's not very necessary, but on the other it might be best to strike while the iron is hot.
[-]cmd/compile: update compiler's PGO profile as part of rc1 relui flow[/-][+]cmd/compile, x/build/cmd/relui: update compiler's PGO profile as part of rc1 relui flow[/+]cherrymui commentedon Jun 1, 2023
When I did it I put GOROOT in /tmp so the file paths are short. We could probably also trim cold nodes from the profile to reduce size.
gopherbot commentedon Dec 2, 2023
Change https://go.dev/cl/546337 mentions this issue:
cmd/compile: update PGO profilecmd/compile: update PGO profile
cmd/compile: update PGO profile
21 remaining items
[-]cmd/compile, x/build/cmd/relui: update compiler's PGO profile as part of rc1 relui flow[/-][+]cmd/compile: update compiler's PGO profile[/+]gopherbot commentedon Dec 8, 2025
Change https://go.dev/cl/728121 mentions this issue:
cmd/compile: update default PGO profilecherrymui commentedon Jan 8, 2026
Attempted to do it in CL 728121 for Go 1.26. The improvement is very small with the new profile. And that CL triggered a compiler failure with the GOEXPERIMENT=newinliner. We can skip updating for 1.26.
We should look into the failure with newinliner. But it is a separate issue and doesn't block Go 1.26 release.
dmitshur commentedon May 26, 2026
This should be safe to do before or after Go 1.27 RC 1, probably better no later than RC 2. Added that label for visibility.
gopherbot commentedon Jun 18, 2026
Change https://go.dev/cl/792120 mentions this issue:
cmd/compile: update default PGO profilecmd/compile: update default PGO profile
cherrymui commentedon Jun 18, 2026
Updated for 1.27. Move to 1.28.