Pass on the feedable query modifier to macros#151546
Pass on the feedable query modifier to macros#151546rust-bors[bot] merged 1 commit intorust-lang:mainfrom
feedable query modifier to macros#151546Conversation
|
cc @cjgillot as this presumedly runs previously untested feedable code. |
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Pass on the `feedable` query modifier to macros
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (916de6d): comparison URL. Overall result: ❌✅ regressions and improvements - please read the text belowBenchmarking 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. Next Steps: If you can justify the regressions found in this try perf run, please do so in sufficient writing along with @bors rollup=never Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary -1.8%, secondary -2.9%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary -0.6%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 470.684s -> 471.728s (0.22%) |
|
r? @Zalathar |
|
It's scary that |
|
We should definitely forward the |
|
This is the formerly-dead code that gets enabled by properly forwarding the rust/compiler/rustc_query_system/src/query/plumbing.rs Lines 461 to 494 in 0c40f5b |
|
It looks reasonable to me, checking that computed and fed results match, if that happens. Presumedly resuming from a query cycle can cause an edge case causing them to diverge. We probably want to know if that doesn't hold and it's already approved / merged. |
|
I guess it's the compute-side equivalent of the hash consistency check in And to some extent we can consider the perf hit to be offsetting the gains from #96840, which expanded these checks. |
|
OK, let's merge this. The perf impact seems in line with what we would accept for correctness fixes, and the no-longer-dead code was reviewed and approved in the past, and matches what we do when feeding values that have already been fed/computed. We can always consider a revert if objections come up. I'll edit the PR description to add a bit more context on the consistency checks. @bors r+ |
This comment has been minimized.
This comment has been minimized.
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 1d05e3c (parent) -> 794495e (this PR) Test differencesNo test diffs found Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard 794495e2b4a1353cf7b66ffc55f0e755490af2cc --output-dir test-dashboardAnd then open Job duration changes
How to interpret the job duration changes?Job durations can vary a lot, based on the actual runner instance |
|
Finished benchmarking commit (794495e): comparison URL. Overall result: ❌ regressions - please read the text belowOur benchmarks found a performance regression caused by this PR. Next Steps:
@rustbot label: +perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (secondary 2.5%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary -1.7%, secondary -3.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 476.238s -> 475.808s (-0.09%) |
Are these checks part of incremental hash verification? If so, the results will look worse on rustc-perf than in the real world, due to its use of |
|
I think it's a separate consistency check for feedable queries, not tied to |
|
Ah, unfortunate, thank you. So it is a correctness fix and it's fine. While we're at it, let's mark it @rustbot label: +perf-regression-triaged |
|
To clarify a bit, the perf difference comes from correctness assertions that were accidentally not being checked. |
This passes on the
feedablequery modifier to macros soQueryConfig.feedablegives the correct result. Currently it's always false even for feedable queries.Fixing this bug enables some consistency checks for feedable queries that were previously not being performed, which has a perf impact.