[llvm] [MemProf] Use radix tree for alloc contexts in bitcode summaries (PR #117066)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 22 12:33:40 PST 2024


================
@@ -637,6 +638,10 @@ computeFrameHistogram(llvm::MapVector<CallStackId, llvm::SmallVector<FrameIdTy>>
 template llvm::DenseMap<FrameId, FrameStat> computeFrameHistogram<FrameId>(
     llvm::MapVector<CallStackId, llvm::SmallVector<FrameId>>
         &MemProfCallStackData);
+template llvm::DenseMap<LinearFrameId, FrameStat>
----------------
teresajohnson wrote:

They aren't the same underlying type, which is why the templatization was needed. One is uint32_t (LinearFrameId) and one is uint64_t (FrameId).

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


More information about the llvm-commits mailing list