Skip to content

Recommend -fprofile-generate instead of -fprofile-instr-generate for PGO in Clang's user manual #45668

@zmodem

Description

@zmodem
Bugzilla Link 46323
Version trunk
OS Linux
CC @gburgessiv,@LebedevRI

Extended Description

Clang's user manual currently recommends -fprofile-instr-generate for instrumentation based profile-guided optimization (https://clang.llvm.org/docs/UsersManual.html#profiling-with-instrumentation)

Towards the end of that section, there is a part about -fprofile-generate saying it's an alternative instrumentation method.

However, my understanding is that -fprofile-generate is really better for PGO (it supports value profiling for example), and -fprofile-instr-generate is best left for code coverage analysis.

If my understand is correct, can we update the docs to reflect this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    PGOProfile Guided OptimizationsbugzillaIssues migrated from bugzilladocumentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions