Skip to content

[Clang] Investigate updating PGO cache to do offline merging #160774

@boomanaiden154

Description

@boomanaiden154

From some internal discussion, it appears that the default strategy for dumping profile data (online merging) needs to have ASLR disabled in order to do indirect call value profiling, otherwise no ICP gets performed. We should just need to set LLVM_PROFILE_FILE to contain %p rather than %m. This results in more work being spent during the offline merging stage, but I don't think that's a big deal. Not having any ICP might be a decent performance regression.

Steps to perform

  1. Verify that no ICP is happening
  2. Update the cache to use offline merging
  3. Measure the performance improvement

Metadata

Metadata

Assignees

No one assigned

    Labels

    PGOProfile Guided Optimizations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions