Skip to content

Remove INCR const param from try_execute_query.#155282

Draft
nnethercote wants to merge 1 commit intorust-lang:mainfrom
nnethercote:try_execute_query-INCR
Draft

Remove INCR const param from try_execute_query.#155282
nnethercote wants to merge 1 commit intorust-lang:mainfrom
nnethercote:try_execute_query-INCR

Conversation

@nnethercote
Copy link
Copy Markdown
Contributor

try_execute_query has non-incremental and incremental paths. Currently the non-incr/incr distinction is encoded in two different ways: the INCR const bool param and the dep_node option value. We don't need both -- true is always paired with Some and false is always paired with None. This commit removes INCR.

`try_execute_query` has non-incremental and incremental paths. Currently
the non-incr/incr distinction is encoded in two different ways: the
`INCR` const bool param and the `dep_node` option value. We don't need
both -- `true` is always paired with `Some` and `false` is always paired
with `None`. This commit removes `INCR`.
@rustbot rustbot added A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) 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 Apr 14, 2026
@nnethercote
Copy link
Copy Markdown
Contributor Author

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rust-bors

This comment has been minimized.

rust-bors bot pushed a commit that referenced this pull request Apr 14, 2026
Remove `INCR` const param from `try_execute_query`.
@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Apr 14, 2026
@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors bot commented Apr 14, 2026

☀️ Try build successful (CI)
Build commit: 2d480f7 (2d480f75b29d4f5ab3e11317e8cc41a4f22102b0, parent: 7db0ab43a7f248268e6460b96a955e3d420b485d)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (2d480f7): comparison URL.

Overall result: ❌ regressions - please read:

Benchmarking means the PR may be perf-sensitive. It's automatically marked not fit for rolling up. Overriding is possible but disadvised: it risks changing compiler perf.

Next, please: If you can, justify the regressions found in this try perf run in writing along with @rustbot label: +perf-regression-triaged. If not, fix the regressions and do another perf run. Neutral or positive results will clear the label automatically.

@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.3% [0.2%, 0.5%] 9
Regressions ❌
(secondary)
0.5% [0.1%, 1.0%] 29
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 0.3% [0.2%, 0.5%] 9

Max RSS (memory usage)

Results (primary -4.8%, secondary -2.5%)

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)
-4.8% [-4.8%, -4.8%] 1
Improvements ✅
(secondary)
-2.5% [-2.5%, -2.5%] 1
All ❌✅ (primary) -4.8% [-4.8%, -4.8%] 1

Cycles

Results (primary 7.3%, secondary -0.7%)

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

mean range count
Regressions ❌
(primary)
9.7% [5.2%, 15.1%] 4
Regressions ❌
(secondary)
4.3% [4.3%, 4.3%] 1
Improvements ✅
(primary)
-2.3% [-2.3%, -2.3%] 1
Improvements ✅
(secondary)
-5.6% [-5.6%, -5.6%] 1
All ❌✅ (primary) 7.3% [-2.3%, 15.1%] 5

Binary size

This perf run didn't have relevant results for this metric.

Bootstrap: 489.054s -> 487.828s (-0.25%)
Artifact size: 394.23 MiB -> 393.56 MiB (-0.17%)

@rustbot rustbot added perf-regression Performance regression. and removed S-waiting-on-perf Status: Waiting on a perf run to be completed. labels Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) perf-regression Performance regression. 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants