[clang] [compiler-rt] [llvm] [InstrFDO][TypeProf] Implement binary instrumentation and profile read/write (PR #66825)

Mingming Liu via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 5 22:09:32 PST 2024


================
@@ -605,6 +703,19 @@ Function* InstrProfSymtab::getFunction(uint64_t FuncMD5Hash) {
   return nullptr;
 }
 
+GlobalVariable *
+InstrProfSymtab::getGlobalVariable(uint64_t GlobalVariableMD5Hash) {
+  finalizeSymtab();
----------------
minglotus-6 wrote:

Indeed. With a DenseMap there is no need to call 'finalizeSymtab' (which sorts the vectors for look-up). Done.

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


More information about the llvm-commits mailing list