[all-commits] [llvm/llvm-project] d54f59: Add cold attribute to one time construction APIs

Aditya Kumar via All-commits all-commits at lists.llvm.org
Thu Aug 13 09:30:32 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d54f5979bb829e3864016798cc1cb5eecf39c4e0
      https://github.com/llvm/llvm-project/commit/d54f5979bb829e3864016798cc1cb5eecf39c4e0
  Author: Aditya Kumar <1894981+hiraditya at users.noreply.github.com>
  Date:   2020-08-13 (Thu, 13 Aug 2020)

  Changed paths:
    M libcxxabi/include/cxxabi.h

  Log Message:
  -----------
  Add cold attribute to one time construction APIs

_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

Reviewed By: ldionne

Reviewers: mclow.lists, ldionne, jfb, yfeldblum

Differential Revision: https://reviews.llvm.org/D85873




More information about the All-commits mailing list