[llvm] Port CodeGenPrepare to new pass manager (and BasicBlockSectionsProfil… (PR #75380)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 3 01:45:53 PST 2024
================
@@ -1963,6 +1965,9 @@ Error PassBuilder::parsePassPipeline(ModulePassManager &MPM,
Pipeline = {{"cgscc", std::move(*Pipeline)}};
} else if (isFunctionPassName(FirstName,
FunctionPipelineParsingCallbacks)) {
+ if (FirstName == "codegenprepare") {
+ MPM.addPass(RequireAnalysisPass<ProfileSummaryAnalysis, Module>());
+ }
----------------
paperchalice wrote:
I added this analysis in default codegen pipeline in #74920 and use option `-passes='require<profile-summary>,function(select-optimize)'` for testing.
https://github.com/llvm/llvm-project/pull/75380
More information about the llvm-commits
mailing list