[llvm] [SampleFDO] Stale profile call-graph matching (PR #95135)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 24 19:07:57 PDT 2024


================
@@ -133,8 +149,43 @@ void SampleProfileMatcher::findProfileAnchors(const FunctionSamples &FS,
   }
 }
 
-LocToLocMap SampleProfileMatcher::longestCommonSequence(
-    const AnchorList &AnchorList1, const AnchorList &AnchorList2) const {
+Function *
+SampleProfileMatcher::functionHasProfile(const FunctionId &IRFuncName) {
----------------
WenleiHe wrote:

nit: with the name `functionHasProfile`, the return should be a boolean, and `Function*` can be an out parameter. 

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


More information about the llvm-commits mailing list