aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Serialization/ModuleFile.cpp
diff options
context:
space:
mode:
authorJan Voung <jvoung@gmail.com>2024-06-20 21:04:14 -0400
committerGitHub <noreply@github.com>2024-06-20 21:04:14 -0400
commite1e5ed5893c50918dc9b6b56acfe6242f03354dc (patch)
tree48351fc78039b83c65f08fdbb786f78fb543509b /clang/lib/Serialization/ModuleFile.cpp
parent2fe8498654fe5db68c585fc9fa4cd84d634e53df (diff)
downloadllvm-e1e5ed5893c50918dc9b6b56acfe6242f03354dc.zip
llvm-e1e5ed5893c50918dc9b6b56acfe6242f03354dc.tar.gz
llvm-e1e5ed5893c50918dc9b6b56acfe6242f03354dc.tar.bz2
Update ModuleSummaryIndexBitcodeReader::makeCallList reserve amount (#95461)
Tighten the reserve() to `Record.size() / 2` instead of `Record.size()` in the HasProfile/HasRelBF cases. For the uncommon old profile format cases we leave it as is, but those should be rare and not worth optimizing. This reduces peak memory during ThinLTO indexing by ~3% in one example. Alternatively, we could make the branching for reserve more complex and try to cover every case.
Diffstat (limited to 'clang/lib/Serialization/ModuleFile.cpp')
0 files changed, 0 insertions, 0 deletions