[all-commits] [llvm/llvm-project] fb5c94: [profdata] Use --hot-func-list to show all hot fun...

Ellis Hoag via All-commits all-commits at lists.llvm.org
Fri Jul 18 14:00:54 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fb5c94e712e683e8b7c3cd04b3e47584c226d751
      https://github.com/llvm/llvm-project/commit/fb5c94e712e683e8b7c3cd04b3e47584c226d751
  Author: Ellis Hoag <ellis.sparky.hoag at gmail.com>
  Date:   2025-07-18 (Fri, 18 Jul 2025)

  Changed paths:
    M llvm/test/tools/llvm-profdata/c-general.test
    A llvm/test/tools/llvm-profdata/show-hot.proftext
    M llvm/tools/llvm-profdata/llvm-profdata.cpp

  Log Message:
  -----------
  [profdata] Use --hot-func-list to show all hot functions (#149428)

The `--hot-func-list` flag is used for sample profiles to dump the list
of hot functions. Add support to dump hot functions for IRPGO profiles
as well.

This also removes a `priority_queue` used for `--topn`. We can instead
store all functions and sort at the end before dumping. Since we are
storing `StringRef`s, I believe this won't consume too much memory.



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