[all-commits] [llvm/llvm-project] 3c6864: [Clang][CodeGen] Remove explicit insertion of Allo...

Marco Elver via All-commits all-commits at lists.llvm.org
Tue Dec 2 07:14:07 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3c6864ab8879f7274e6c24c3b7c8e8139cd135dd
      https://github.com/llvm/llvm-project/commit/3c6864ab8879f7274e6c24c3b7c8e8139cd135dd
  Author: Marco Elver <elver at google.com>
  Date:   2025-12-02 (Tue, 02 Dec 2025)

  Changed paths:
    M clang/lib/CodeGen/BackendUtil.cpp
    M clang/lib/CodeGen/CodeGenModule.cpp
    M clang/test/CodeGen/alloc-token-lower.c
    A clang/test/CodeGen/alloc-token-module-flags.c
    A clang/test/CodeGen/distributed-thin-lto/memprof-pgho.cpp
    M clang/test/CodeGen/lto-newpm-pipeline.c

  Log Message:
  -----------
  [Clang][CodeGen] Remove explicit insertion of AllocToken pass (#169360)

Remove explicit insertion of the AllocTokenPass, which is now handled by
the PassBuilder. Emit AllocToken configuration as LLVM module flags to
persist into the backend.

Specifically, this also means it will now be handled by LTO backend
phases; this avoids interference with other optimizations (e.g. PGHO)
and enable late heap-allocation optimizations with LTO enabled.



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