[all-commits] [llvm/llvm-project] e2b536: [CodeGen] Move CodeGenPGO behind unique_ptr (NFC) ...

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon Jun 2 00:52:15 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e2b536431d85c49cdfad5106d116ced683a0667a
      https://github.com/llvm/llvm-project/commit/e2b536431d85c49cdfad5106d116ced683a0667a
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2025-06-02 (Mon, 02 Jun 2025)

  Changed paths:
    M clang/lib/CodeGen/CGBlocks.cpp
    M clang/lib/CodeGen/CGCall.cpp
    M clang/lib/CodeGen/CGDecl.cpp
    M clang/lib/CodeGen/CGExpr.cpp
    M clang/lib/CodeGen/CGObjC.cpp
    M clang/lib/CodeGen/CGStmt.cpp
    M clang/lib/CodeGen/CGStmtOpenMP.cpp
    M clang/lib/CodeGen/CodeGenFunction.cpp
    M clang/lib/CodeGen/CodeGenFunction.h
    M clang/lib/CodeGen/CodeGenPGO.cpp
    M clang/lib/CodeGen/CoverageMappingGen.cpp
    M clang/lib/CodeGen/Targets/AMDGPU.cpp
    M clang/lib/CodeGen/Targets/MSP430.cpp
    M clang/lib/CodeGen/Targets/NVPTX.cpp

  Log Message:
  -----------
  [CodeGen] Move CodeGenPGO behind unique_ptr (NFC) (#142155)

The InstrProf headers are very expensive. Avoid including them in all of
CodeGen/ by moving the CodeGenPGO member behind a unqiue_ptr.

This reduces clang build time by 0.8%.



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