[all-commits] [llvm/llvm-project] 22aaf3: [Analysis] Add DebugInfoCache analysis

Artem Pianykh via All-commits all-commits at lists.llvm.org
Fri Dec 6 04:45:08 PST 2024


  Branch: refs/heads/users/artempyanykh/fast-coro-upstream/10
  Home:   https://github.com/llvm/llvm-project
  Commit: 22aaf36b142acf091e9c943d6f70f3db579848b6
      https://github.com/llvm/llvm-project/commit/22aaf36b142acf091e9c943d6f70f3db579848b6
  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