diff options
author | shawbyoung <shawbyoung@gmail.com> | 2024-07-24 12:56:56 -0700 |
---|---|---|
committer | shawbyoung <shawbyoung@gmail.com> | 2024-07-24 12:56:56 -0700 |
commit | 11af7f19953da7c5ad4eb263be3d38a70b2518e0 (patch) | |
tree | 6b6dc8ffbbf6fa4980fb76583928eeda1ebdd955 | |
parent | 39ba7175c9224c3584db7f5f8ca8fbed14da41e5 (diff) | |
download | llvm-users/shawbyoung/spr/bolt-match-functions-with-pseudo-probes.zip llvm-users/shawbyoung/spr/bolt-match-functions-with-pseudo-probes.tar.gz llvm-users/shawbyoung/spr/bolt-match-functions-with-pseudo-probes.tar.bz2 |
Added check for YamlBF.Used in pseudo probe function matchingusers/shawbyoung/spr/bolt-match-functions-with-pseudo-probes
Created using spr 1.3.4
-rw-r--r-- | bolt/lib/Profile/YAMLProfileReader.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bolt/lib/Profile/YAMLProfileReader.cpp b/bolt/lib/Profile/YAMLProfileReader.cpp index 75ec446..8dfdf1f 100644 --- a/bolt/lib/Profile/YAMLProfileReader.cpp +++ b/bolt/lib/Profile/YAMLProfileReader.cpp @@ -614,6 +614,8 @@ size_t YAMLProfileReader::matchWithPseudoProbes(BinaryContext &BC) { uint64_t MatchedWithPseudoProbes = 0; for (yaml::bolt::BinaryFunctionProfile &YamlBF : YamlBP.Functions) { + if (YamlBF.Used) + continue; auto It = PseudoProbeDescHashToBF.find(YamlBF.PseudoProbeDescHash); if (It == PseudoProbeDescHashToBF.end()) continue; |