Skip to content

Can add_unreachable_coverage() in mapgen.rs be simplified? #79622

Closed

Description

See #79109 (comment)

The PR introduced a solution to adding Zero coverage for functions that were processed for MIR, but not codegenned, because they were optimized out and never reached (never called).

The algorithm for finding and injecting the additional code regions, in the right place, is a bit complex.

Can this solution be simplified and/or improved? Are there other sources of compiler state data that might help (or better sources that could be exposed via cx, tcx, or something else, but aren't yet)?

(Related to Tracking Issue #79121)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    A-code-coverageArea: Source-based code coverage (-Cinstrument-coverage)C-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions