Fix "llvm-profdata show" so it can work with compact binary format profile. The change is to mark all functions "used" so SampleProfileReaderCompactBinary::read will read in all profiles available for dumping. The function names will be MD5 hash for compact binary format.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Thanks for the patch.
llvm/include/llvm/ProfileData/SampleProfReader.h | ||
---|---|---|
284 ↗ | (On Diff #211344) | We may not need markAllFuncToUse. We can just set UseAllFuncs to False inside of collectFuncsToUse. A related thing is that is it better to set UseAllFuncs to True by default and only set UseAllFuncs to False in collectFuncsToUse? The reason is we have some out-of-tree tools which needs to read profiles of all functions, so it will be easier for them by setting UseAllFuncs to True by default. |
llvm/include/llvm/ProfileData/SampleProfReader.h | ||
---|---|---|
284 ↗ | (On Diff #211344) | Thanks for the suggestion, Wei. Agreed it's better to have the flag default to true. Updated. |