[llvm] [CGData] Lazy loading support for stable function map (PR #151660)

Ellis Hoag via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 14 07:45:51 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) {
----------------
ellishg wrote:

Ah that makes sense. Thanks for checking. 

https://github.com/llvm/llvm-project/pull/151660


More information about the llvm-commits mailing list