[llvm] [SampleFDO] Stale profile call-graph matching (PR #95135)
David Li via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 15 09:49:04 PDT 2024
================
@@ -189,7 +238,9 @@ LocToLocMap SampleProfileMatcher::longestCommonSequence(
X = V[Index(K - 1)] + 1;
Y = X - K;
while (X < Size1 && Y < Size2 &&
- AnchorList1[X].second == AnchorList2[Y].second)
+ functionMatchesProfile(AnchorList1[X].second,
+ AnchorList2[Y].second,
+ !MatchUnusedFunction))
----------------
david-xl wrote:
The negation is slightly confusing. Perhaps add a comment : !MatchUnusedFunction /* matched functions only */
https://github.com/llvm/llvm-project/pull/95135
More information about the llvm-commits
mailing list