Skip to content

opt-dist: should we pass -Zincremental-verify-ich during builds? #159563

Description

@Mark-Simulacrum

I noticed that we are currently passing -Zincremental-verify-ich unconditionally:

https://github.com/rust-lang/rustc-perf/blob/a513efc21cce31d0dc55abf16060334581853dc3/collector/src/bin/rustc-fake.rs#L78-L85

This at minimum slows down that compilation, and likely also pollutes the profiling data with incorrect measurements (for actual users - perf.rlo would obviously be happy about it).

I'm not sure how much extra noise we'd see if we didn't do this though; the default is to verify 1/32 of the hashes which might mean that random-ish code sometimes get better PGO and sometimes worse. I'm also not sure how much benefit there is to not doing this.

cc @Kobzol

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-opt-distArea: opt-dist tooling and workflowC-enhancementCategory: An issue proposing an enhancement or a PR with one.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions