[llvm] [llvm-profgen] Improve sample profile density (PR #92144)
Lei Wang via llvm-commits
llvm-commits at lists.llvm.org
Thu May 16 22:40:55 PDT 2024
wlei-llvm wrote:
> > what we want is just the final profile.
>
> Is that difficult to change?
Ah, that should be even easier, just remove the
```
// Merge function samples of CS profile to calculate profile density.
sampleprof::SampleProfileMap ContextLessProfiles;
for (const auto &I : ProfileMap) {
ContextLessProfiles[I.second.getName()].merge(I.second);
}
calculateAndShowDensity(ContextLessProfiles);
```
Then we don't need the post-pre-inliner one and only the last one.
https://github.com/llvm/llvm-project/pull/92144
More information about the llvm-commits
mailing list