[llvm] [llvm-profgen] Filter out ambiguous cold profiles during profile generation (PR #81803)

via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 14 19:50:16 PST 2024


================
@@ -491,6 +518,7 @@ void ProfileGenerator::generateProfile() {
 void ProfileGenerator::postProcessProfiles() {
   computeSummaryAndThreshold(ProfileMap);
   trimColdProfiles(ProfileMap, ColdCountThreshold);
+  filterAmbiguousProfile(ProfileMap);
----------------
WenleiHe wrote:

Please comment why we need to filter.

https://github.com/llvm/llvm-project/pull/81803


More information about the llvm-commits mailing list