This is an archive of the discontinued LLVM Phabricator instance.

[llvm-profdata] Drop profile symbol list during merging AutoFDO profiles.
ClosedPublic

Authored by hoy on Dec 6 2022, 4:41 PM.

Details

Summary

Adding a switch to drop profile symbol list during merging AutoFDO profiles. This is needed to minimize the impact on default profiles when the profile symbol list is enabled for the source input profiles. The symbol list is quite large and could potentially slow down the compiler.

Diff Detail

Event Timeline

hoy created this revision.Dec 6 2022, 4:41 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 6 2022, 4:41 PM
Herald added subscribers: modimo, wenlei. · View Herald Transcript
hoy requested review of this revision.Dec 6 2022, 4:41 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 6 2022, 4:41 PM
wenlei accepted this revision.Dec 6 2022, 4:47 PM
wenlei added inline comments.
llvm/tools/llvm-profdata/llvm-profdata.cpp
1235

Add (only meaningful for -sample) to the description.

This revision is now accepted and ready to land.Dec 6 2022, 4:47 PM
hoy updated this revision to Diff 480699.Dec 6 2022, 4:56 PM
hoy marked an inline comment as done.

Addressing feedbacks.

davidxl accepted this revision.Dec 6 2022, 7:50 PM

lgtm

This revision was landed with ongoing or failed builds.Dec 6 2022, 9:12 PM
This revision was automatically updated to reflect the committed changes.