diff options
author | Teresa Johnson <tejohnson@google.com> | 2024-11-20 10:08:58 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-20 10:08:58 -0800 |
commit | e14827f0828d14ef17ab76316e8449d1b76e2617 (patch) | |
tree | cdc599c1cb9f81ae0b58497367f109ff5c1e1ac8 /llvm/lib/ProfileData/InstrProfWriter.cpp | |
parent | 6473a36edc571cf0734a2e8d4354e332efb170e9 (diff) | |
download | llvm-e14827f0828d14ef17ab76316e8449d1b76e2617.zip llvm-e14827f0828d14ef17ab76316e8449d1b76e2617.tar.gz llvm-e14827f0828d14ef17ab76316e8449d1b76e2617.tar.bz2 |
[MemProf] Templatize CallStackRadixTreeBuilder (NFC) (#117014)
Prepare for usage in the bitcode reader/writer where we already have a
LinearFrameId:
- templatize input frame id type in CallStackRadixTreeBuilder
- templatize input frame id type in computeFrameHistogram
- make the map from FrameId to LinearFrameId optional
We plan to use the same radix format in the ThinLTO summary records,
where we already have a LinearFrameId.
Diffstat (limited to 'llvm/lib/ProfileData/InstrProfWriter.cpp')
-rw-r--r-- | llvm/lib/ProfileData/InstrProfWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ProfileData/InstrProfWriter.cpp b/llvm/lib/ProfileData/InstrProfWriter.cpp index 5580fe0..d90629a 100644 --- a/llvm/lib/ProfileData/InstrProfWriter.cpp +++ b/llvm/lib/ProfileData/InstrProfWriter.cpp @@ -635,7 +635,7 @@ writeMemProfCallStackArray( llvm::DenseMap<memprof::CallStackId, memprof::LinearCallStackId> MemProfCallStackIndexes; - memprof::CallStackRadixTreeBuilder Builder; + memprof::CallStackRadixTreeBuilder<memprof::FrameId> Builder; Builder.build(std::move(MemProfCallStackData), MemProfFrameIndexes, FrameHistogram); for (auto I : Builder.getRadixArray()) |