aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUnrollAndJam.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2024-09-07 18:15:24 -0700
committerGitHub <noreply@github.com>2024-09-07 18:15:24 -0700
commit482e7dc67b7de22a47aff63eda1dd719cda86267 (patch)
treeb0aa4f373a954201017070ed704cbf9c29f3d4a6 /llvm/lib/Transforms/Utils/LoopUnrollAndJam.cpp
parent718fbcb27194aefa8db45aed4b93bd0727196b3a (diff)
downloadllvm-482e7dc67b7de22a47aff63eda1dd719cda86267.zip
llvm-482e7dc67b7de22a47aff63eda1dd719cda86267.tar.gz
llvm-482e7dc67b7de22a47aff63eda1dd719cda86267.tar.bz2
[ThinLTO] Use DenseMap for OidGuidMap (#107725)
We use OidGuidMap only to map an old GUID to a new one. We don't use std::set's strengths like iterators staying valid or the ability to traverse in a sorted order. As a data point, during the ThinLTO indexing step of a large application of ours, we create 440,000 mappings. Our memory profiler reports reduction of 127MB in the peak memory usage (out of 4.991GB), which is bigger than expected savings most likely due to some noise. The savings should be about 8MB at the max load factor of DenseMap.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnrollAndJam.cpp')
0 files changed, 0 insertions, 0 deletions