Skip to content

DepNodeIndex does not uniquely identify anonymous queries #85688

Open
@cjgillot

Description

@cjgillot

The DepNodeIndex for an anonymous query is computed from its DepKind and from the list of dependencies, but does not depend on its key. As DepNodes are deduplicated before creation, the same DepNodeIndex can correspond to multiple anonymous query invocations.

Query self-profiling relies on DepNodeIndex to identify query invocations.

The consequences of this deduplication on self-profiling need further investigation.

cc @michaelwoerister

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-query-systemArea: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html)A-self-profileArea: Self-profiling feature of the compilerT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions