rustbot · GitHub

@rustbot added S-waiting-on-author

Status: This is awaiting some action (such as code changes or more information) from the author.

T-bootstrap

Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

labels

Jul 10, 2026

rust-bors Bot pushed a commit that referenced this pull request

Jul 10, 2026
Use PGO for rustdoc
try-job: dist-x86_64-linux

rust-bors Bot pushed a commit that referenced this pull request

Jul 11, 2026
Use PGO for rustdoc

rust-bors Bot pushed a commit that referenced this pull request

Jul 11, 2026
Use PGO for rustdoc
try-job: dist-x86_64-linux

@Kobzol

Kobzol marked this pull request as ready for review

July 11, 2026 13:14

@rustbot rustbot added S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

and removed S-waiting-on-author

Status: This is awaiting some action (such as code changes or more information) from the author.

labels

Jul 11, 2026

rust-bors Bot pushed a commit that referenced this pull request

Jul 15, 2026
Use PGO for rustdoc
try-job: dist-x86_64-msvc
try-job: dist-x86_64-linux

@rustbot rustbot added S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

and removed S-waiting-on-author

Status: This is awaiting some action (such as code changes or more information) from the author.

labels

Jul 15, 2026

@rust-bors rust-bors Bot added S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

and removed S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

labels

Jul 17, 2026

@rust-bors

Closed

@Kobzol

Kobzol deleted the bootstrap-pgo-rustdoc branch

July 18, 2026 06:21

pull Bot pushed a commit to LeeeeeeM/miri that referenced this pull request

Jul 19, 2026
Use PGO for rustdoc
This PR extends the recently added support for configuring PGO options per component in bootstrap to support `rustdoc` and enables PGO training on `Doc` benchmarks.
We build PGO-instrumented rustc and rustdoc together.
I tested two variants:
- Run all rustc benchmarks *also* on `Doc` rustc-perf profiles, and then use the same merged PGO profile to optimize both rustc and rustdoc
  - rust-lang/rust#159091 (comment)
- Run rustc benchmarks separately, and generate the rustc PGO profile from that, same as before. Then run *only* `Doc` benchmarks, and generate a rustdoc PGO profile from that, and use that to optimize rustdoc (note that here we run the `Doc` benchmarks using a PGO instrumented rustc too, so the profiles will include PGO data from librustc_driver.so).
  - rust-lang/rust#159091 (comment)
I think that the second reason is slightly better, and produces better results (and less rustc regressions).
Gathering the rustdoc PGO profiles takes barely over a minute, I don't think that this should have a large effect on the duration of the `dist-x86_64-linux` job.
try-job: dist-x86_64-msvc
try-job: dist-x86_64-linux

github-actions Bot pushed a commit to rust-lang/rustc-dev-guide that referenced this pull request

Jul 20, 2026
Use PGO for rustdoc
This PR extends the recently added support for configuring PGO options per component in bootstrap to support `rustdoc` and enables PGO training on `Doc` benchmarks.
We build PGO-instrumented rustc and rustdoc together.
I tested two variants:
- Run all rustc benchmarks *also* on `Doc` rustc-perf profiles, and then use the same merged PGO profile to optimize both rustc and rustdoc
  - rust-lang/rust#159091 (comment)
- Run rustc benchmarks separately, and generate the rustc PGO profile from that, same as before. Then run *only* `Doc` benchmarks, and generate a rustdoc PGO profile from that, and use that to optimize rustdoc (note that here we run the `Doc` benchmarks using a PGO instrumented rustc too, so the profiles will include PGO data from librustc_driver.so).
  - rust-lang/rust#159091 (comment)
I think that the second reason is slightly better, and produces better results (and less rustc regressions).
Gathering the rustdoc PGO profiles takes barely over a minute, I don't think that this should have a large effect on the duration of the `dist-x86_64-linux` job.
try-job: dist-x86_64-msvc
try-job: dist-x86_64-linux

Open

Read the original on github.com ↗