aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGen.cpp
diff options
context:
space:
mode:
authorSotiris Apostolakis <apostolakis@google.com>2022-05-13 22:29:21 +0000
committerSotiris Apostolakis <apostolakis@google.com>2022-05-19 16:31:10 +0000
commitca7c307d18160485ab30289dc1b14bd16ac35c52 (patch)
tree4fd451ce353b684a189a5a722a6f6f5db1317263 /llvm/lib/CodeGen/CodeGen.cpp
parentdbffa4073cf8cf278d72ad1bc3defdf7ae4f8949 (diff)
downloadllvm-ca7c307d18160485ab30289dc1b14bd16ac35c52.zip
llvm-ca7c307d18160485ab30289dc1b14bd16ac35c52.tar.gz
llvm-ca7c307d18160485ab30289dc1b14bd16ac35c52.tar.bz2
[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
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
-rw-r--r--llvm/lib/CodeGen/CodeGen.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/CodeGen.cpp b/llvm/lib/CodeGen/CodeGen.cpp
index 1c81dc3..5050395 100644
--- a/llvm/lib/CodeGen/CodeGen.cpp
+++ b/llvm/lib/CodeGen/CodeGen.cpp
@@ -107,6 +107,7 @@ void llvm::initializeCodeGen(PassRegistry &Registry) {
initializeRemoveRedundantDebugValuesPass(Registry);
initializeRenameIndependentSubregsPass(Registry);
initializeSafeStackLegacyPassPass(Registry);
+ initializeSelectOptimizePass(Registry);
initializeShadowStackGCLoweringPass(Registry);
initializeShrinkWrapPass(Registry);
initializeSjLjEHPreparePass(Registry);