[PATCH] D139603: [llvm-profdata] Add option to cap profile output size
Rong Xu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 15 14:05:15 PST 2022
xur added a comment.
I have some high level questions:
(1) have you considered removing samples with smaller values across the program-- it's like downsampling. Comparing to removing functions with smaller total counts, I think that results in a more consistent profile.
(2) if we choose to remove function, and you sort the function with total count, should we find the exactly place to cut to satisfy the size limit? In theory it should as the profile organized in unit of function. You can keep writing to the buffer until it reaches the limits. Of cause there are some section data for extbinary and summary, but they should be able to compute. Using heuristic to guess the function to remove and doing it iteratively does not seem to be appealing here.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139603/new/
https://reviews.llvm.org/D139603
More information about the llvm-commits
mailing list