[all-commits] [llvm/llvm-project] 2190fe: [Analysis] Add DebugInfoCache analysis

Artem Pianykh via All-commits all-commits at lists.llvm.org
Tue Dec 17 01:00:43 PST 2024


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