Skip to content

Add red-green mark when dumping dep graph. Show DefIds if available - #165930

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
blyxyas:better-dump-dep-graph
Nov 22, 2026
Merged

rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
blyxyas:better-dump-dep-graph

Conversation

@blyxyas

@blyxyas blyxyas commented Nov 13, 2026

Copy link
Copy Markdown
Member

We were dumping the dependency graph just by NodeKind. Now we separate by NodeKind and by fingerprint. This allows us to dump both the DefId of the input to the query, and if that query was marked green or red (which is much more important information).

Debug tool meant for blyxyas/incr-systems#1

r? @jackh726

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Nov 13, 2026
@rust-log-analyzer

This comment has been minimized.

@blyxyas
blyxyas force-pushed the better-dump-dep-graph branch from d15905c to 777fa85 Compare November 13, 2026 17:32
@blyxyas

blyxyas commented Nov 13, 2026

Copy link
Copy Markdown
Member Author

Note that most of the changes trivially replace DepKind with DepNode (which contains DefId and color information).

@blyxyas
blyxyas force-pushed the better-dump-dep-graph branch from 777fa85 to 92ce431 Compare November 19, 2026 13:08
@rustbot

This comment has been minimized.

@blyxyas
blyxyas force-pushed the better-dump-dep-graph branch from 92ce431 to 4f2ad6c Compare November 20, 2026 17:15
@rustbot

rustbot commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different main 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.

@jackh726

Copy link
Copy Markdown
Member

@bors r+

@rust-bors

rust-bors Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 4f2ad6c has been tentatively approved by jackh726

It will be put into the queue for this repository once PR CI succeeds.

@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 Nov 20, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Nov 20, 2026
…ackh726

Add red-green mark when dumping dep graph. Show DefIds if available

We were dumping the dependency graph just by NodeKind. Now we separate by NodeKind **and** by fingerprint. This allows us to dump both the DefId of the input to the query, and if that query was marked green or red (which is much more important information).

Debug tool meant for blyxyas/incr-systems#1

r? @jackh726
rust-bors Bot pushed a commit that referenced this pull request Nov 20, 2026
…uwer

Rollup of 5 pull requests

Successful merges:

 - #166266 (miri subtree update)
 - #164878 (Don't require `extern "llvm-intrinsic"` return structs to be `#[repr(packed)]`)
 - #165930 (Add red-green mark when dumping dep graph. Show DefIds if available)
 - #166012 (Added more queries to AdtDef in rustc_public to check for rust language types)
 - #166269 (libcore: Revert some comment changes)
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Nov 21, 2026
…ackh726

Add red-green mark when dumping dep graph. Show DefIds if available

We were dumping the dependency graph just by NodeKind. Now we separate by NodeKind **and** by fingerprint. This allows us to dump both the DefId of the input to the query, and if that query was marked green or red (which is much more important information).

Debug tool meant for blyxyas/incr-systems#1

r? @jackh726
rust-bors Bot pushed a commit that referenced this pull request Nov 22, 2026
…uwer

Rollup of 14 pull requests

Successful merges:

 - #166266 (miri subtree update)
 - #164878 (Don't require `extern "llvm-intrinsic"` return structs to be `#[repr(packed)]`)
 - #165008 (Support `NonNull` pointers as `asm!` input operands)
 - #165892 (`rustc_builtin_macros` cleanup, part 10)
 - #165930 (Add red-green mark when dumping dep graph. Show DefIds if available)
 - #166280 (std: also mark doctests with skip_unsupported_miri_tests)
 - #166295 (use `cfg!(overflow_checks)` in `overflow_checks` intrinsic instead of `cfg!(debug_assertions)`)
 - #165618 (Implement RangeIntersect on core::range types)
 - #166012 (Added more queries to AdtDef in rustc_public to check for rust language types)
 - #166142 (Lower to `hir::Param`s for extern functions)
 - #166259 (fmt: Improve `Debug` for `FormattingOptions`)
 - #166269 (libcore: Revert some comment changes)
 - #166287 (Use `core::ptr` in `implicit_provenance_casts` help for `no_std` crates)
 - #166306 (bootstrap: Stop passing `-Ztrim-paths` to cargo now that it's stable in beta)
@Zalathar

Copy link
Copy Markdown
Member

@bors try jobs=test-x86_64-rust-for-linux

@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Nov 22, 2026
Add red-green mark when dumping dep graph. Show DefIds if available


try-job: test-x86_64-rust-for-linux
@rust-bors

rust-bors Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: dadec98 (dadec981e11f9f78ffce236076eeef6b3e1b0ef8)
Base parent: 342d744 (342d74463af7dd3018ef6aa04dd5500c2deb5bd1)

JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Nov 22, 2026
…ackh726

Add red-green mark when dumping dep graph. Show DefIds if available

We were dumping the dependency graph just by NodeKind. Now we separate by NodeKind **and** by fingerprint. This allows us to dump both the DefId of the input to the query, and if that query was marked green or red (which is much more important information).

Debug tool meant for blyxyas/incr-systems#1

r? @jackh726
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Nov 22, 2026
…ackh726

Add red-green mark when dumping dep graph. Show DefIds if available

We were dumping the dependency graph just by NodeKind. Now we separate by NodeKind **and** by fingerprint. This allows us to dump both the DefId of the input to the query, and if that query was marked green or red (which is much more important information).

Debug tool meant for blyxyas/incr-systems#1

r? @jackh726
rust-bors Bot pushed a commit that referenced this pull request Nov 22, 2026
…uwer

Rollup of 19 pull requests

Successful merges:

 - #166266 (miri subtree update)
 - #164878 (Don't require `extern "llvm-intrinsic"` return structs to be `#[repr(packed)]`)
 - #165008 (Support `NonNull` pointers as `asm!` input operands)
 - #165892 (`rustc_builtin_macros` cleanup, part 10)
 - #165930 (Add red-green mark when dumping dep graph. Show DefIds if available)
 - #166280 (std: also mark doctests with skip_unsupported_miri_tests)
 - #166295 (use `cfg!(overflow_checks)` in `overflow_checks` intrinsic instead of `cfg!(debug_assertions)`)
 - #164485 (Stabilize unchecked `nonzero_ops`)
 - #165618 (Implement RangeIntersect on core::range types)
 - #165782 (Make unsafe unknown diagnostic attributes an error again)
 - #165833 (Deallocate with the right provenance on Windows)
 - #165834 (Implement tidy alphabetical --bless on Windows)
 - #165889 (Fix docs of alloc fn: Allocator API stabilized)
 - #165923 (Don't load/store a LLVM aggregate type when returning an array from a generic SIMD intrinsic)
 - #166012 (Added more queries to AdtDef in rustc_public to check for rust language types)
 - #166186 (OpenOptions::append: clarify docs)
 - #166216 (Stop using #![no_core] in profiler_builtins)
 - #166259 (fmt: Improve `Debug` for `FormattingOptions`)
 - #166263 (Show slice split results for empty and singleton slices)
rust-bors Bot pushed a commit that referenced this pull request Nov 22, 2026
…uwer

Rollup of 18 pull requests

Successful merges:

 - #164878 (Don't require `extern "llvm-intrinsic"` return structs to be `#[repr(packed)]`)
 - #165008 (Support `NonNull` pointers as `asm!` input operands)
 - #165892 (`rustc_builtin_macros` cleanup, part 10)
 - #165930 (Add red-green mark when dumping dep graph. Show DefIds if available)
 - #166280 (std: also mark doctests with skip_unsupported_miri_tests)
 - #166295 (use `cfg!(overflow_checks)` in `overflow_checks` intrinsic instead of `cfg!(debug_assertions)`)
 - #164485 (Stabilize unchecked `nonzero_ops`)
 - #165618 (Implement RangeIntersect on core::range types)
 - #165782 (Make unsafe unknown diagnostic attributes an error again)
 - #165833 (Deallocate with the right provenance on Windows)
 - #165834 (Implement tidy alphabetical --bless on Windows)
 - #165889 (Fix docs of alloc fn: Allocator API stabilized)
 - #165923 (Don't load/store a LLVM aggregate type when returning an array from a generic SIMD intrinsic)
 - #166012 (Added more queries to AdtDef in rustc_public to check for rust language types)
 - #166186 (OpenOptions::append: clarify docs)
 - #166216 (Stop using #![no_core] in profiler_builtins)
 - #166259 (fmt: Improve `Debug` for `FormattingOptions`)
 - #166263 (Show slice split results for empty and singleton slices)
rust-bors Bot pushed a commit that referenced this pull request Nov 22, 2026
…uwer

Rollup of 18 pull requests

Successful merges:

 - #164878 (Don't require `extern "llvm-intrinsic"` return structs to be `#[repr(packed)]`)
 - #165008 (Support `NonNull` pointers as `asm!` input operands)
 - #165892 (`rustc_builtin_macros` cleanup, part 10)
 - #165930 (Add red-green mark when dumping dep graph. Show DefIds if available)
 - #166280 (std: also mark doctests with skip_unsupported_miri_tests)
 - #166295 (use `cfg!(overflow_checks)` in `overflow_checks` intrinsic instead of `cfg!(debug_assertions)`)
 - #164485 (Stabilize unchecked `nonzero_ops`)
 - #165618 (Implement RangeIntersect on core::range types)
 - #165782 (Make unsafe unknown diagnostic attributes an error again)
 - #165833 (Deallocate with the right provenance on Windows)
 - #165834 (Implement tidy alphabetical --bless on Windows)
 - #165889 (Fix docs of alloc fn: Allocator API stabilized)
 - #165923 (Don't load/store a LLVM aggregate type when returning an array from a generic SIMD intrinsic)
 - #166012 (Added more queries to AdtDef in rustc_public to check for rust language types)
 - #166186 (OpenOptions::append: clarify docs)
 - #166216 (Stop using #![no_core] in profiler_builtins)
 - #166259 (fmt: Improve `Debug` for `FormattingOptions`)
 - #166263 (Show slice split results for empty and singleton slices)
@rust-bors
rust-bors Bot merged commit 6db246a into rust-lang:main Nov 22, 2026
15 checks passed
@rustbot rustbot added this to the 1.102.0 milestone Nov 22, 2026
rust-bors Bot pushed a commit that referenced this pull request Nov 22, 2026
Rollup merge of #165930 - blyxyas:better-dump-dep-graph, r=jackh726

Add red-green mark when dumping dep graph. Show DefIds if available

We were dumping the dependency graph just by NodeKind. Now we separate by NodeKind **and** by fingerprint. This allows us to dump both the DefId of the input to the query, and if that query was marked green or red (which is much more important information).

Debug tool meant for blyxyas/incr-systems#1

r? @jackh726
@rust-timer

Copy link
Copy Markdown
Collaborator

Note

This PR was benchmarked as part of triage of its containing rollup: triage URL.

Finished benchmarking commit (07db0e2): comparison URL.

Overall result: ❌✅ regressions and improvements - please read:

Our benchmarks found a performance regression caused by this PR.
This might be an actual regression, but it can also be just noise.

Next Steps:

  • If the regression was expected or you think it can be justified,
    please write a comment with sufficient written justification, and add
    @rustbot label: +perf-regression-triaged to it, to mark the regression as triaged.
  • If you think that you know of a way to resolve the regression, try to create
    a new PR with a fix for the regression.
  • If you do not understand the regression or you think that it is just noise,
    you can ask the @rust-lang/wg-compiler-performance working group for help (members of this group
    were already notified of this PR).

@rustbot label: +perf-regression
cc @rust-lang/wg-compiler-performance

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.8% [0.1%, 1.1%] 8
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-0.1% [-0.1%, -0.1%] 3
All ❌✅ (primary) - - 0

Max RSS (memory usage)

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

Cycles

Results (secondary -2.4%)

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.6% [4.1%, 5.1%] 2
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-6.0% [-7.6%, -4.2%] 4
All ❌✅ (primary) - - 0

Binary size

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

Artifact size: 405.67 MiB -> 406.46 MiB (0.20%)

@rustbot rustbot added the perf-regression Performance regression. label Nov 22, 2026
@panstromek

Copy link
Copy Markdown
Contributor

perf triage:

include-blob and ctfe-stress- results are noise.

@rustbot label: +perf-regression-triaged

@rustbot rustbot added the perf-regression-triaged The performance regression has been triaged. label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

perf-regression Performance regression. perf-regression-triaged The performance regression has been triaged. 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