__cxa_guard_acquire is used for only one purpose, namely guarding local static variable initialization, and since that purpose is definitionally cold, it should be attributed as cold.
Similarly for __cxa_guard_release and __cxa_guard_abort
Details
Details
- Reviewers
mclow.lists ldionne jfb yfeldblum - Group Reviewers
Restricted Project - Commits
- rGd54f5979bb82: Add cold attribute to one time construction APIs
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
FYI: libstdc++ patch sent for review: https://gcc.gnu.org/pipermail/gcc-patches/2020-August/551934.html