[all-commits] [llvm/llvm-project] 451f3f: [DwarfDump] Add new set of line-table-related stat...

Stephen Tozer via All-commits all-commits at lists.llvm.org
Thu Jun 13 09:15:54 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 451f3fcffdeb95db8a42b1403bdf9d95dda0e6d0
      https://github.com/llvm/llvm-project/commit/451f3fcffdeb95db8a42b1403bdf9d95dda0e6d0
  Author: Stephen Tozer <stephen.tozer at sony.com>
  Date:   2024-06-13 (Thu, 13 Jun 2024)

  Changed paths:
    M llvm/test/tools/llvm-dwarfdump/X86/locstats.ll
    M llvm/tools/llvm-dwarfdump/Statistics.cpp

  Log Message:
  -----------
  [DwarfDump] Add new set of line-table-related statistics to llvm-dwarfdump (#93289)

This patch adds a new set of statistics to llvm-dwarfdump that provide
additional information about .debug_line regarding the number of bytes
covered by the line table (and how many of those are covered by line 0
entries), and the number of entries within the table and how many of
those are is_stmt, unique, or unique and non-line-0 (where "uniqueness"
is based on file, line, and column only).

Collectively these give a little more insight into the state of debug
line information, rather than variables (as most of the dwarfdump
statistics are currently oriented towards). I've added all of the stats
that were useful to some degree, but I think the most generally useful
stat is "unique line entries", since it gives the most straightforward
indication of regressions, i.e. when the number goes down it means that
fewer source lines are reachable in the program.



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