Skip to content

[Clang] -fprofile-sample-use option has not effect #112391

@mikolaj-pirog

Description

@mikolaj-pirog

Issuing clang -fprofile-sample-use file.cc has no effect: nothing is printed, binary isn't built with profiling info; the option seems to be ignored. When file is specified with fprofile-sample-use=profile.prof it works as expected. This is surprising, since similar option fprofile-use behaves differently -- when no file is specified, it looks for default.profdata in the current directory and prints error message when it doesn't find any. The fprofile-sample-use should behave as fprofile-use in this case

Metadata

Metadata

Assignees

No one assigned

    Labels

    PGOProfile Guided Optimizationsclang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl'

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions