This is split off
https://reviews.llvm.org/D28965
Refactor the dumping function so that we can add other value profile kind easily.
Paths
| Differential D30752
[PGO] Refactor the valule profile dumping function for ease of adding other profile kind ClosedPublic Authored by xur on Mar 8 2017, 12:37 PM.
Details Summary This is split off Refactor the dumping function so that we can add other value profile kind easily.
Diff Detail Event Timeline
This revision is now accepted and ready to land.Mar 8 2017, 6:41 PM Closed by commit rL297399: [PGO] Refactor profile dumping function for ease of adding other profile kind (authored by xur). · Explain WhyMar 9 2017, 11:16 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 91109 test/tools/llvm-profdata/value-prof.proftext
tools/llvm-profdata/llvm-profdata.cpp
|
Better to extract the driver loop into a common function, eg: traverseAllValueSites, and then pass a lambda/callback to do different things such as collect stats or dumping.