[PATCH] D120230: [SelectOpti][1/4] Setup new select-optimize pass

Sotiris Apostolakis via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 23 10:44:07 PST 2022


apostolakis created this revision.
Herald added subscribers: hiraditya, mgorny.
apostolakis edited the summary of this revision.
apostolakis edited the summary of this revision.
Herald added a subscriber: wenlei.
apostolakis published this revision for review.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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 will only be enabled for instrumentation-based PGO.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D120230

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120230.410218.patch
Type: text/x-patch
Size: 8809 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220223/44d1e0a8/attachment.bin>


More information about the llvm-commits mailing list