[llvm] [memprof] Add call stack IDs to IndexedAllocationInfo (PR #85888)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 22 11:00:50 PDT 2024


================
@@ -117,5 +119,28 @@ Expected<MemProfSchema> readMemProfSchema(const unsigned char *&Buffer) {
   return Result;
 }
 
+CallStackId hashCallStack(ArrayRef<FrameId> CS) {
+  llvm::HashBuilder<llvm::TruncatedBLAKE3<8>, llvm::endianness::little>
+      HashBuilder;
+  for (FrameId F : CS)
----------------
teresajohnson wrote:

Is the plan to move the FrameId to also use BLAKE3? (Doesn't need to be in this patch, but wondering if we can do that so we get more consistency with the compiler's hashes.

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


More information about the llvm-commits mailing list