[llvm] [ProfileData] Implement contains in SampleProfileNameTable (NFC) (PR #211995)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 27 20:48:18 PDT 2026


================
@@ -450,22 +494,37 @@ class MD5SampleProfileNameTable final : public SampleProfileNameTable {
     assert(Idx < Vec.size() && "Index out of bounds");
     return Vec[Idx];
   }
+
+  bool contains(uint64_t GUID) const override {
+    return getOrCreateSet(MD5Set, Vec, GetFunctionIdHash).contains(GUID);
----------------
kazutakahirata wrote:

Fixed in the latest iteration.  Thanks!

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


More information about the llvm-commits mailing list