[all-commits] [llvm/llvm-project] 3c1311: [ProfileData] Introduce SampleProfileFuncOffsetTab...

Kazu Hirata via All-commits all-commits at lists.llvm.org
Sat Jun 27 05:27:17 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3c1311e8f0985b6a399c92b6e4a4ebe7f07c4d8b
      https://github.com/llvm/llvm-project/commit/3c1311e8f0985b6a399c92b6e4a4ebe7f07c4d8b
  Author: Kazu Hirata <kazu at google.com>
  Date:   2026-06-27 (Sat, 27 Jun 2026)

  Changed paths:
    M llvm/include/llvm/ProfileData/SampleProfReader.h
    M llvm/lib/ProfileData/SampleProfReader.cpp
    M llvm/unittests/ProfileData/SampleProfTest.cpp

  Log Message:
  -----------
  [ProfileData] Introduce SampleProfileFuncOffsetTable (NFC) (#205045)

This patch introduces SampleProfileFuncOffsetTable, a unified wrapper
representing the function offset table.

Currently, the offset table is always a DenseMap.  To support the
upcoming on-disk hash table (v104) for faster sample profile loading,
this patch abstracts the offset table representation.  The new class
can delegate lookups to either the in-memory DenseMap or the on-disk
OnDiskIterableChainedHashTable.

This patch updates the reader to use the new wrapper's lookup and
insert interfaces.  Since the on-disk path is not yet active, this
change is a non-functional change (NFC).

RFC:
https://discourse.llvm.org/t/rfc-faster-sample-profile-loading/90957/4



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list