[llvm] [ThinLTO] Use a set rather than a map to track exported ValueInfos. (PR #97360)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 2 08:55:15 PDT 2024
================
@@ -998,14 +995,29 @@ static bool isGlobalVarSummary(const ModuleSummaryIndex &Index,
return false;
}
-template <class T>
-static unsigned numGlobalVarSummaries(const ModuleSummaryIndex &Index, T &Cont,
+static unsigned numGlobalVarSummaries(const ModuleSummaryIndex &Index,
----------------
teresajohnson wrote:
I think this can be simplified more - simply return the number that are GVs (i.e. no output reference parameters needed). The number that are functions can be deduced by the caller from the size of the ExportSet minus the returned GVs count.
https://github.com/llvm/llvm-project/pull/97360
More information about the llvm-commits
mailing list