Skip to content

Commit 11af7f1

Browse files
committed
Added check for YamlBF.Used in pseudo probe function matching
Created using spr 1.3.4
1 parent 39ba717 commit 11af7f1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bolt/lib/Profile/YAMLProfileReader.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,8 @@ size_t YAMLProfileReader::matchWithPseudoProbes(BinaryContext &BC) {
614614

615615
uint64_t MatchedWithPseudoProbes = 0;
616616
for (yaml::bolt::BinaryFunctionProfile &YamlBF : YamlBP.Functions) {
617+
if (YamlBF.Used)
618+
continue;
617619
auto It = PseudoProbeDescHashToBF.find(YamlBF.PseudoProbeDescHash);
618620
if (It == PseudoProbeDescHashToBF.end())
619621
continue;

0 commit comments

Comments
 (0)