[llvm] [memprof] Add call stack IDs to IndexedAllocationInfo (PR #85888)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 23 09:55:25 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)
----------------
kazutakahirata wrote:
I wasn't thinking about that, but yes, we could move the `FrameID` to also use BLAKE3.
https://github.com/llvm/llvm-project/pull/85888
More information about the llvm-commits
mailing list