[all-commits] [llvm/llvm-project] c93b3a: [MemProf] Extend MemProfUse pass to make use of da...

Mingming Liu via All-commits all-commits at lists.llvm.org
Wed Aug 27 20:43:59 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c93b3a345406f0ee6cef28b8b85a94d734b40fb0
      https://github.com/llvm/llvm-project/commit/c93b3a345406f0ee6cef28b8b85a94d734b40fb0
  Author: Mingming Liu <mingmingl at google.com>
  Date:   2025-08-27 (Wed, 27 Aug 2025)

  Changed paths:
    M llvm/include/llvm/ProfileData/InstrProfReader.h
    M llvm/include/llvm/Transforms/Instrumentation/MemProfUse.h
    M llvm/lib/Transforms/Instrumentation/MemProfUse.cpp
    A llvm/test/Transforms/PGOProfile/data-access-profile.ll

  Log Message:
  -----------
  [MemProf] Extend MemProfUse pass to make use of data access profiles to partition data (#151238)

https://github.com/llvm/llvm-project/commit/f3f28323adbb9d01372d81b4c78ed94683e58757
introduces the data access profile format as a payload inside
[memprof](https://llvm.org/docs/InstrProfileFormat.html#memprof-profile-data),
and the MemProfUse pass reads the memprof payload.

This change extends the MemProfUse pass to read the data access profiles
to annotate global variables' section prefix.
1. If there are samples for a global variable, it's annotated as hot.
2. If a global variable is seen in the profiled binary file but doesn't
have access samples, it's annotated as unlikely.

Introduce an option `annotate-static-data-prefix` to flag-gate the
global-variable annotation path, and make it false by default.
https://github.com/llvm/llvm-project/pull/155337 is the (WIP) draft
change to "reconcile" two sources of hotness.



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