aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
diff options
context:
space:
mode:
authorSnehasish Kumar <snehasishk@google.com>2022-02-23 12:37:42 -0800
committerSnehasish Kumar <snehasishk@google.com>2022-03-03 11:00:37 -0800
commitdda7b74967cc32867356b300d3ab9c4d777ecb18 (patch)
tree6bb1ac5842d594fe93ce9924d8fb85a8026fd264 /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
parent569d0cc46dbb981e70983a323cbf8176585451e7 (diff)
downloadllvm-dda7b74967cc32867356b300d3ab9c4d777ecb18.zip
llvm-dda7b74967cc32867356b300d3ab9c4d777ecb18.tar.gz
llvm-dda7b74967cc32867356b300d3ab9c4d777ecb18.tar.bz2
[memprof] Symbolize and cache stack frames.
Currently, symbolization of stack frames occurs on demand when the instrprof writer iterates over all the records in the raw memprof reader. With this change we symbolize and cache the frames immediately after reading the raw profiles. For a large internal binary this results in a runtime reduction of ~50% (2m -> 48s) when merging a memprof raw profile with a raw instr profile to generate an indexed profile. This change also makes it simpler in the future to generate additional calling context metadata to attach to each memprof record. Differential Revision: https://reviews.llvm.org/D120430
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions