Skip to content

Commit 135ec7a

Browse files
Add a comment.
1 parent 451a183 commit 135ec7a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

llvm/lib/Transforms/IPO/SampleProfileMatcher.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,10 @@ SampleProfileMatcher::longestCommonSequence(const AnchorList &AnchorList1,
199199
llvm::longestCommonSequence<LineLocation, FunctionId>(
200200
AnchorList1, AnchorList2,
201201
[&](const FunctionId &A, const FunctionId &B) {
202-
return functionMatchesProfile(A, B, !MatchUnusedFunction);
202+
return functionMatchesProfile(
203+
A, B,
204+
!MatchUnusedFunction // Find matched function only
205+
);
203206
},
204207
[&](LineLocation A, LineLocation B) {
205208
MatchedAnchors.try_emplace(A, B);

0 commit comments

Comments
 (0)