[all-commits] [llvm/llvm-project] 04e094: [PGO] Remove legacy PM passes

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Apr 15 10:26:55 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 04e094a33629e97d4ec51db4d5ca56066d82b030
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-04-15 (Fri, 15 Apr 2022)

  Changed paths:
    M llvm/include/llvm/InitializePasses.h
    M llvm/include/llvm/LinkAllPasses.h
    M llvm/include/llvm/Transforms/IPO/PassManagerBuilder.h
    M llvm/include/llvm/Transforms/Instrumentation.h
    M llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
    M llvm/lib/Transforms/Instrumentation/IndirectCallPromotion.cpp
    M llvm/lib/Transforms/Instrumentation/Instrumentation.cpp
    M llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
    M llvm/lib/Transforms/Instrumentation/PGOMemOPSizeOpt.cpp
    M llvm/test/CodeGen/AMDGPU/opt-pipeline.ll

  Log Message:
  [PGO] Remove legacy PM passes

Legacy PM for optimization pipeline was deprecated in 13.0.0 and Clang dropped
legacy PM support in D123609. This change removes legacy PM passes for PGO so
that downstream projects won't be able to use it. It seems appropriate to start
removing such "add-on" features like instrumentations, before we remove more
stuff after 15.x is branched.

I have checked many LLVM users and only ldc[1] uses the legacy PGO pass.

[1]: https://github.com/ldc-developers/ldc/issues/3961

Reviewed By: davidxl

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

More information about the All-commits mailing list