[all-commits] [llvm/llvm-project] c9be62: [PassBuilder] Add `LTOPreLink` to early simplicati...

Shilei Tian via All-commits all-commits at lists.llvm.org
Fri Nov 1 09:28:40 PDT 2024


  Branch: refs/heads/users/shiltian/lto-pre-link-bool
  Home:   https://github.com/llvm/llvm-project
  Commit: c9be622e4f6f2c59bb3371ddd42fe6f4ff844c77
      https://github.com/llvm/llvm-project/commit/c9be622e4f6f2c59bb3371ddd42fe6f4ff844c77
  Author: Shilei Tian <i at tianshilei.me>
  Date:   2024-11-01 (Fri, 01 Nov 2024)

  Changed paths:
    M clang/lib/CodeGen/BackendUtil.cpp
    M llvm/include/llvm/Passes/PassBuilder.h
    M llvm/lib/Passes/PassBuilderPipelines.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
    M llvm/lib/Target/BPF/BPFTargetMachine.cpp
    M llvm/test/CodeGen/AMDGPU/print-pipeline-passes.ll
    M llvm/tools/opt/NewPMDriver.cpp

  Log Message:
  -----------
  [PassBuilder] Add `LTOPreLink` to early simplication EP call backs

The early simplication pipeline is used in non-LTO and (Thin/Full)LTO pre-link
stage. There are some passes that we want them in non-LTO mode, but not at LTO
pre-link stage. The control is missing currently. This PR adds the support. To
demonstrate the use, we only enable the internalization pass in non-LTO mode for
AMDGPU because having it run in pre-link stage causes some issues.



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