[all-commits] [llvm/llvm-project] 54bc13: [Analysis] Add DebugInfoCache analysis

Artem Pianykh via All-commits all-commits at lists.llvm.org
Fri Jan 24 00:40:27 PST 2025


  Branch: refs/heads/users/artempyanykh/fast-coro-upstream/10
  Home:   https://github.com/llvm/llvm-project
  Commit: 54bc13d26e0c0c3cd9b2205ca3453c58a815be4e
      https://github.com/llvm/llvm-project/commit/54bc13d26e0c0c3cd9b2205ca3453c58a815be4e
  Author: Artem Pianykh <arr at fb.com>
  Date:   2024-09-15 (Sun, 15 Sep 2024)

  Changed paths:
    A llvm/include/llvm/Analysis/DebugInfoCache.h
    M llvm/include/llvm/IR/DebugInfo.h
    M llvm/lib/Analysis/CMakeLists.txt
    A llvm/lib/Analysis/DebugInfoCache.cpp
    M llvm/lib/Passes/PassBuilder.cpp
    M llvm/lib/Passes/PassRegistry.def
    M llvm/unittests/Analysis/CMakeLists.txt
    A llvm/unittests/Analysis/DebugInfoCacheTest.cpp

  Log Message:
  -----------
  [Analysis] Add DebugInfoCache analysis

Summary:
The analysis simply primes and caches DebugInfoFinders for each DICompileUnit in a module. This
allows (future) callers like CoroSplitPass to compute global debug info metadata (required for
coroutine function cloning) much faster. Specifically, pay the price of DICompileUnit processing
only once per compile unit, rather than once per coroutine.

Test Plan:
Added a smoke test for the new analysis
ninja check-llvm-unit check-llvm

stack-info: PR: https://github.com/llvm/llvm-project/pull/118629, branch: users/artempyanykh/fast-coro-upstream/10



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