This is an archive of the discontinued LLVM Phabricator instance.

Add show and merge tools for sample PGO profiles.
ClosedPublic

Authored by dnovillo on Oct 31 2014, 2:08 PM.

Details

Summary

This patch extends the 'show' and 'merge' commands in llvm-profdata to handle
sample PGO formats. Using the 'merge' command it is now possible to convert
one sample PGO format to another.

The only format that is currently not working is 'gcc'. I still need to
implement support for it in lib/ProfileData.

The changes in the sample profile support classes are needed for the
merge operation.

Diff Detail

Repository
rL LLVM

Event Timeline

dnovillo updated this revision to Diff 15645.Oct 31 2014, 2:08 PM
dnovillo retitled this revision from to Add show and merge tools for sample PGO profiles..
dnovillo updated this object.
dnovillo edited the test plan for this revision. (Show Details)
dnovillo added a reviewer: bogner.
dnovillo added a subscriber: Unknown Object (MLST).
dnovillo updated this revision to Diff 15663.Oct 31 2014, 5:59 PM
  • Use range-for iteration.
  • Fix flag check for --all-functions and --function in llvm-profdata.
dnovillo closed this revision.Oct 31 2014, 6:07 PM
dnovillo updated this revision to Diff 15664.

Closed by commit rL221032 (authored by @dnovillo).