diff options
author | Fangrui Song <i@maskray.me> | 2025-01-10 17:59:28 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-10 17:59:28 -0800 |
commit | af4d76d909b0df79494ca19b7c289c2a5b18c816 (patch) | |
tree | 4b098c85fc5a5caf5d37344130c043c81232ab54 /clang/lib/CodeGen/BackendUtil.cpp | |
parent | 99d0780f050c830c046c6f8790821880ab7c71f5 (diff) | |
download | llvm-af4d76d909b0df79494ca19b7c289c2a5b18c816.zip llvm-af4d76d909b0df79494ca19b7c289c2a5b18c816.tar.gz llvm-af4d76d909b0df79494ca19b7c289c2a5b18c816.tar.bz2 |
[Support] Reduce globaal variable overhead after #121663
* Construct frequently-accessed TimerLock/DefaultTimerGroup early to
reduce overhead.
* Rename `aquireDefaultGroup` to `acquireTimerGlobals` and restore
ManagedStatic::claim. https://reviews.llvm.org/D76099
* Drop mtg::. We use internal linkage, so mtg:: is unneeded and might
mislead users. In addition, llvm/ code almost never introduces a named
namespace not in llvm::. Drop mtg::.
* Replace some unique_ptr with optional to reduce overhead.
* Switch to `functionName()`.
* Simplify `llvm::initTimerOptions` and `TimerGroup::constructForStatistics()`
Pull Request: https://github.com/llvm/llvm-project/pull/122429
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
0 files changed, 0 insertions, 0 deletions