Skip to content

Conversation

@cjgillot
Copy link
Contributor

@cjgillot cjgillot commented Oct 13, 2025

Even on a slow diagnostic path, listing all the constants in MIR can be expensive, so cache it.

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Oct 13, 2025
@cjgillot
Copy link
Contributor Author

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rust-bors

This comment has been minimized.

rust-bors bot added a commit that referenced this pull request Oct 13, 2025
Liveness: Cache the set of string constants for suggestions.
@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Oct 13, 2025
@rust-bors
Copy link

rust-bors bot commented Oct 13, 2025

☀️ Try build successful (CI)
Build commit: adc508b (adc508b9c46926c0f3e4b324eab0405c2ec2e126, parent: 9b8264604ef800b5539d04bf78ebdef5c5fa4968)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (adc508b): comparison URL.

Overall result: ✅ improvements - no action needed

Benchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf.

@bors rollup=never
@rustbot label: -S-waiting-on-perf -perf-regression

Instruction count

Our most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-0.8% [-1.3%, -0.4%] 4
Improvements ✅
(secondary)
-0.1% [-0.1%, -0.1%] 1
All ❌✅ (primary) -0.8% [-1.3%, -0.4%] 4

Max RSS (memory usage)

Results (primary -2.9%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-2.9% [-2.9%, -2.9%] 1
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -2.9% [-2.9%, -2.9%] 1

Cycles

Results (secondary 0.8%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
4.3% [2.5%, 6.1%] 2
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-2.7% [-3.4%, -2.1%] 2
All ❌✅ (primary) - - 0

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 474.96s -> 474.876s (-0.02%)
Artifact size: 388.14 MiB -> 388.11 MiB (-0.01%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Oct 13, 2025
@cjgillot cjgillot marked this pull request as ready for review October 13, 2025 19:32
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 13, 2025
@rustbot
Copy link
Collaborator

rustbot commented Oct 13, 2025

Some changes occurred to MIR optimizations

cc @rust-lang/wg-mir-opt

@rustbot rustbot removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Oct 13, 2025
@rustbot
Copy link
Collaborator

rustbot commented Oct 13, 2025

r? @petrochenkov

rustbot has assigned @petrochenkov.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@cjgillot
Copy link
Contributor Author

r? estebank

@rustbot rustbot assigned estebank and unassigned petrochenkov Oct 13, 2025
@cjgillot cjgillot force-pushed the liveness-cache-strings branch from 1e1f299 to 727da8c Compare October 26, 2025 17:40
@rustbot
Copy link
Collaborator

rustbot commented Oct 26, 2025

This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@cjgillot
Copy link
Contributor Author

cjgillot commented Nov 6, 2025

r? compiler

@rustbot rustbot assigned madsmtm and unassigned estebank Nov 6, 2025
@estebank
Copy link
Contributor

estebank commented Nov 6, 2025

@bors r+

@bors
Copy link
Collaborator

bors commented Nov 6, 2025

📌 Commit 727da8c has been approved by estebank

It is now in the queue for this repository.

@bors bors 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 Nov 6, 2025
@bors
Copy link
Collaborator

bors commented Nov 7, 2025

⌛ Testing commit 727da8c with merge 9606412...

@bors
Copy link
Collaborator

bors commented Nov 7, 2025

☀️ Test successful - checks-actions
Approved by: estebank
Pushing 9606412 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Nov 7, 2025
@bors bors merged commit 9606412 into rust-lang:master Nov 7, 2025
12 checks passed
@rustbot rustbot added this to the 1.93.0 milestone Nov 7, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Nov 7, 2025

What is this? This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.

Comparing 0bbef55 (parent) -> 9606412 (this PR)

Test differences

Show 2 test diffs

2 doctest diffs were found. These are ignored, as they are noisy.

Test dashboard

Run

cargo run --manifest-path src/ci/citool/Cargo.toml -- \
    test-dashboard 96064126a086a8428d66e07fb3b91421bb86a512 --output-dir test-dashboard

And then open test-dashboard/index.html in your browser to see an overview of all executed tests.

Job duration changes

  1. tidy: 296.8s -> 173.3s (-41.6%)
  2. pr-check-1: 1817.4s -> 1319.5s (-27.4%)
  3. i686-gnu-2: 6340.6s -> 5251.6s (-17.2%)
  4. i686-gnu-1: 8461.7s -> 7041.6s (-16.8%)
  5. dist-x86_64-apple: 7985.9s -> 6723.0s (-15.8%)
  6. dist-aarch64-apple: 6568.6s -> 5563.0s (-15.3%)
  7. x86_64-gnu-gcc: 3512.3s -> 3065.2s (-12.7%)
  8. dist-aarch64-msvc: 6164.9s -> 5398.0s (-12.4%)
  9. x86_64-gnu-llvm-21-3: 6354.1s -> 5617.6s (-11.6%)
  10. x86_64-gnu-tools: 3761.6s -> 3375.5s (-10.3%)
How to interpret the job duration changes?

Job durations can vary a lot, based on the actual runner instance
that executed the job, system noise, invalidated caches, etc. The table above is provided
mostly for t-infra members, for simpler debugging of potential CI slow-downs.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (9606412): comparison URL.

Overall result: ✅ improvements - no action needed

@rustbot label: -perf-regression

Instruction count

Our most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-0.9% [-1.4%, -0.5%] 4
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -0.9% [-1.4%, -0.5%] 4

Max RSS (memory usage)

This benchmark run did not return any relevant results for this metric.

Cycles

Results (secondary 0.0%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
2.9% [2.9%, 2.9%] 2
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-5.7% [-5.7%, -5.7%] 1
All ❌✅ (primary) - - 0

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 475.138s -> 473.265s (-0.39%)
Artifact size: 390.81 MiB -> 390.81 MiB (-0.00%)

@cjgillot cjgillot deleted the liveness-cache-strings branch November 7, 2025 18:26
makai410 pushed a commit to makai410/rust that referenced this pull request Nov 10, 2025
…stebank

Liveness: Cache the set of string constants for suggestions.

Even on a slow diagnostic path, listing all the constants in MIR can be expensive, so cache it.
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. 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants