[all-commits] [llvm/llvm-project] bb3ea6: [MemProf] Switch to DenseMap for performance (NFC)...

Teresa Johnson via All-commits all-commits at lists.llvm.org
Wed Feb 7 13:32:20 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bb3ea6c810ccdffd176589e608bfa79dd25268ff
      https://github.com/llvm/llvm-project/commit/bb3ea6c810ccdffd176589e608bfa79dd25268ff
  Author: Teresa Johnson <tejohnson at google.com>
  Date:   2024-02-07 (Wed, 07 Feb 2024)

  Changed paths:
    M llvm/include/llvm/IR/ModuleSummaryIndex.h

  Log Message:
  -----------
  [MemProf] Switch to DenseMap for performance (NFC) (#81035)

Some profiling showed that the accesses to this map during bitcode
reading was incurring over 10% of the time in a large thin link. There
is no need for it to be std::map, and I measured around 8.5% time
reduction in the same thin link from switching to DenseMap.




More information about the All-commits mailing list