[llvm] [SampleFDO] Stale profile renaming matching (PR #92151)

via llvm-commits llvm-commits at lists.llvm.org
Fri May 17 21:16:58 PDT 2024


================
@@ -260,6 +270,22 @@ void SampleProfileMatcher::matchNonCallsiteLocs(
   }
 }
 
+// Filter the non-call locations from IRAnchors and ProfileAnchors and write
+// them into a list for random access later.
+static void getFilteredAnchorList(const AnchorMap &IRAnchors,
----------------
WenleiHe wrote:

Why file static function, instead of member (static) function for SampleProfileMatcher? 

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


More information about the llvm-commits mailing list