[all-commits] [llvm/llvm-project] 1c6dc4: [BOLT]DWARF] Eagerly write out loclists

Alexander Yermolovich via All-commits all-commits at lists.llvm.org
Wed Jun 8 16:54:00 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1c6dc43de979abc58bb822cd308b1d53eb7f855c
      https://github.com/llvm/llvm-project/commit/1c6dc43de979abc58bb822cd308b1d53eb7f855c
  Author: Alexander Yermolovich <ayermolo at fb.com>
  Date:   2022-06-08 (Wed, 08 Jun 2022)

  Changed paths:
    M bolt/include/bolt/Core/DebugData.h
    M bolt/include/bolt/Rewrite/DWARFRewriter.h
    M bolt/lib/Core/DebugData.cpp
    M bolt/lib/Rewrite/DWARFRewriter.cpp
    A bolt/test/Inputs/dwarf5-loclist-offset-form-helper.s
    A bolt/test/Inputs/dwarf5-loclist-offset-form-main.s
    M bolt/test/X86/dwarf4-df-dualcu-loclist.test
    A bolt/test/dwarf5-loclist-offset-form.test

  Log Message:
  -----------
  [BOLT]DWARF] Eagerly write out loclists

Taking advantage of us being able to re-write .debug_info to reduce memory
footprint loclists. Writing out loc-list as they are added, similar to how
we handle ranges.

Collected on clang-14
trunk
4:41.20 real,   389.50 user,    59.50 sys,      0 amem, 38412532 mmem
4:30.08 real,   376.10 user,    63.75 sys,      0 amem, 38477844 mmem
4:25.58 real,   373.76 user,    54.71 sys,      0 amem, 38439660 mmem
diff
4:34.66 real,   392.83 user,    57.73 sys,      0 amem, 38382560 mmem
4:35.96 real,   377.70 user,    58.62 sys,      0 amem, 38255840 mmem
4:27.61 real,    390.18 user,    57.02 sys,      0 amem, 38223224 mmem

Reviewed By: maksfb

Differential Revision: https://reviews.llvm.org/D126999




More information about the All-commits mailing list