[llvm] Port CodeGenPrepare to new pass manager (and BasicBlockSectionsProfil… (PR #75380)

Nick Anderson via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 3 17:03:28 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>());
+      }
----------------
nickleus27 wrote:

Thank you for the advice, the suggestions really helped.

https://github.com/llvm/llvm-project/pull/75380


More information about the llvm-commits mailing list