[all-commits] [llvm/llvm-project] ca7c30: [SelectOpti][1/5] Setup new select-optimize pass

Sotiris Apostolakis via All-commits all-commits at lists.llvm.org
Thu May 19 09:42:24 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ca7c307d18160485ab30289dc1b14bd16ac35c52
      https://github.com/llvm/llvm-project/commit/ca7c307d18160485ab30289dc1b14bd16ac35c52
  Author: Sotiris Apostolakis <apostolakis at google.com>
  Date:   2022-05-19 (Thu, 19 May 2022)

  Changed paths:
    M llvm/include/llvm/CodeGen/CodeGenPassBuilder.h
    M llvm/include/llvm/CodeGen/MachinePassRegistry.def
    M llvm/include/llvm/CodeGen/Passes.h
    M llvm/include/llvm/InitializePasses.h
    M llvm/include/llvm/LinkAllPasses.h
    M llvm/include/llvm/Target/CGPassBuilderOption.h
    M llvm/lib/CodeGen/CMakeLists.txt
    M llvm/lib/CodeGen/CodeGen.cpp
    A llvm/lib/CodeGen/SelectOptimize.cpp
    M llvm/lib/CodeGen/TargetPassConfig.cpp
    M llvm/tools/opt/opt.cpp

  Log Message:
  -----------
  [SelectOpti][1/5] Setup new select-optimize pass

This is the first commit for the cmov-vs-branch optimization pass.
The goal is to develop a new profile-guided and target-independent cost/benefit analysis
for selecting conditional moves over branches when optimizing for performance.

Initially, this new pass is expected to be enabled only for instrumentation-based PGO.

RFC: https://discourse.llvm.org/t/rfc-cmov-vs-branch-optimization/6040

Reviewed By: tejohnson

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




More information about the All-commits mailing list