[llvm] [SamplePGO] Add a cutoff for number of profile matching anchors (PR #95542)

David Li via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 14 08:56:42 PDT 2024


================
@@ -300,6 +306,16 @@ void SampleProfileMatcher::runStaleProfileMatching(
   if (FilteredIRAnchorsList.empty() || FilteredProfileAnchorList.empty())
     return;
 
+  if (FilteredIRAnchorsList.size() > SalvageStaleProfileMaxCallsites ||
----------------
david-xl wrote:

should the default to be something other than UINT_MAX?

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


More information about the llvm-commits mailing list