This is an archive of the discontinued LLVM Phabricator instance.

[PGO][PGSO] Prep for enabling non-cold code size opts under non-partial-profile sample PGO.
ClosedPublic

Authored by hjyamauchi on Apr 27 2020, 11:17 AM.

Details

Summary
  • Distinguish between partial-profile and non-partial-profile sample PGO.
  • Add a flag for partial-profile sample PGO.
  • Tune the sample PGO cutoff.
  • No default behavior change (yet).

Diff Detail

Event Timeline

hjyamauchi created this revision.Apr 27 2020, 11:17 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 27 2020, 11:17 AM
davidxl added inline comments.Apr 28 2020, 9:56 AM
llvm/include/llvm/Transforms/Utils/SizeOpts.h
43

make the function name consistent with options: PGSOCodeCodeOnly(..)?

hjyamauchi marked 2 inline comments as done.

Address comment.

llvm/include/llvm/Transforms/Utils/SizeOpts.h
43

Done. Renamed to isPGSOColdCodeOnly (PGSOColdCodeOnly would conflict with the flag name.)

This revision is now accepted and ready to land.Apr 28 2020, 11:53 AM
This revision was automatically updated to reflect the committed changes.