[llvm] [SampleProfile] Support MD5-based ProfileSymbolList (PR #210235)
David Li via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 17 09:45:27 PDT 2026
================
@@ -1688,19 +1696,45 @@ class ProfileSymbolList {
Syms.insert(Name.copy(Allocator));
}
- bool contains(StringRef Name) { return Syms.count(Name); }
+ bool contains(StringRef Name) const {
+ return Syms.count(Name) || ColdGUIDTable.contains(llvm::MD5Hash(Name));
+ }
void merge(const ProfileSymbolList &List) {
+ assert(List.ColdGUIDTable.empty() &&
+ "Merging pre-hashed MD5 ProfileSymbolList not yet implemented");
----------------
david-xl wrote:
is this an essencial opration?
https://github.com/llvm/llvm-project/pull/210235
More information about the llvm-commits
mailing list