[llvm] [llvm-profdata] Do not create numerical strings for MD5 function names read from a Sample Profile. (PR #66164)

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 4 11:52:36 PDT 2023


================
@@ -643,14 +648,11 @@ class SampleContext {
   uint64_t getHashCode() const {
     if (hasContext())
       return hash_value(getContextFrames());
-
-    // For non-context function name, use its MD5 as hash value, so that it is
-    // consistent with the profile map's key.
-    return hashFuncName(getName());
+    return getName().getHashCode();
----------------
MatzeB wrote:

```suggestion
    return hash_value(Name);
```

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


More information about the llvm-commits mailing list