[llvm] [CGData] Lazy loading support for stable function map (PR #151660)
Zhaoxuan Jiang via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 14 04:56:44 PDT 2025
================
@@ -202,8 +241,11 @@ static bool isProfitable(
}
void StableFunctionMap::finalize(bool SkipTrim) {
+ deserializeLazyLoadingEntries();
+ SmallVector<HashFuncsMapType::iterator> ToDelete;
for (auto It = HashToFuncs.begin(); It != HashToFuncs.end(); ++It) {
----------------
nocchijiang wrote:
With `make_early_inc_range()` we have no way to access the underlying iterators, so we have to erase entries by key, introducing an additional hash lookup. Not sure if you are expecting this or have a better idea here.
https://github.com/llvm/llvm-project/pull/151660
More information about the llvm-commits
mailing list