[all-commits] [llvm/llvm-project] edd49b: [DebugInfo] Allow .eh_frame CFI programs to be par...

Rafael Auler via All-commits all-commits at lists.llvm.org
Fri Aug 7 17:18:27 PDT 2026


  Branch: refs/heads/users/rafaelauler/ehframe_lazy_parse
  Home:   https://github.com/llvm/llvm-project
  Commit: edd49b6cfdb6b4b53f15d6bcfacf53bf29a8f127
      https://github.com/llvm/llvm-project/commit/edd49b6cfdb6b4b53f15d6bcfacf53bf29a8f127
  Author: Rafael Auler <rafaelauler at meta.com>
  Date:   2026-08-07 (Fri, 07 Aug 2026)

  Changed paths:
    M llvm/include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h
    M llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp

  Log Message:
  -----------
  [DebugInfo] Allow .eh_frame CFI programs to be parsed lazily

BOLT read the entire .eh_frame up front via DwCtx->getEHFrame(), which
parses and caches the CFI instruction program of every CIE/FDE in the
binary for the whole run. On a large binary, this dominated
file-object discovery: CFIProgram::parse accounted for ~6.5 GB and the
cached DWARFDebugFrame ~6.9 GB of live memory (from 5 to 10% of total
anon peak RSS).

This new interface allows DebugInfo's users to optionally parse CFIs
on demand, only when necessary. On BOLT, this is an important lever
to manage memory utilization when processing large binaries.



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