[llvm] Added feature in llvm-profdata merge to filter functions from the profile (PR #78378)
William Junda Huang via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 22 09:59:53 PST 2024
huangjd wrote:
> Thanks for the change. IIUC, it only supports filtering top-level functions, wondering if it's also useful for excluding the inlined(nested children) functions? thinking of some "investigating compilation bug" scenario, it might be necessary to ensure all the function copies are not loaded with a profile.
When specifying a positive match filter, this will basically strip all inlinees of a matched function because its inlinees are likely to have different names so they will not be matched.
We will need another way to specify the filter for inlined functions, as it is probably not intuitive to make the logic of positive and negative filter unexpectedly different.
https://github.com/llvm/llvm-project/pull/78378
More information about the llvm-commits
mailing list