This is an archive of the discontinued LLVM Phabricator instance.

[PGO][PGSO] Tune flags for profile guided size optimization.
ClosedPublic

Authored by hjyamauchi on Jan 17 2020, 10:13 AM.

Details

Summary

Tune the profile threshold flag value for instrumentation PGO based on internal
benchmarks.

Also, add flags to allow profile guided size optimizations for non-cold code
to be enabled separately for instrumentation and sample PGSO.

Neither changes the default behavior (yet) as it's disabled for non-cold code.

Diff Detail

Event Timeline

hjyamauchi created this revision.Jan 17 2020, 10:13 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 17 2020, 10:13 AM
Herald added a subscriber: hiraditya. · View Herald Transcript

Rebase. PTAL.

davidxl added inline comments.Feb 4 2020, 11:10 AM
llvm/include/llvm/Transforms/Utils/SizeOpts.h
58–60

Is this master option needed anymore?

hjyamauchi marked an inline comment as done.Feb 4 2020, 1:19 PM
hjyamauchi added inline comments.
llvm/include/llvm/Transforms/Utils/SizeOpts.h
58–60

Technically not, but I'd like to keep it for a while (eg. a simpler/shorter way to work around issues) We can clean up flags later.

davidxl accepted this revision.Feb 4 2020, 1:21 PM

lgtm

This revision is now accepted and ready to land.Feb 4 2020, 1:21 PM
This revision was automatically updated to reflect the committed changes.