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

via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 2 21:57:39 PST 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff ed3e007a8759508973f9c67209958e219e515bf8 5ebf174c104d3ee7a004d57dabce6bb3349dd169 -- llvm/include/llvm/CodeGen/CodeGenPrepare.h llvm/include/llvm/CodeGen/BasicBlockSectionsProfileReader.h llvm/include/llvm/CodeGen/Passes.h llvm/include/llvm/InitializePasses.h llvm/include/llvm/LinkAllPasses.h llvm/lib/CodeGen/BasicBlockPathCloning.cpp llvm/lib/CodeGen/BasicBlockSections.cpp llvm/lib/CodeGen/BasicBlockSectionsProfileReader.cpp llvm/lib/CodeGen/CodeGen.cpp llvm/lib/CodeGen/CodeGenPrepare.cpp llvm/lib/CodeGen/TargetPassConfig.cpp llvm/lib/Passes/PassBuilder.cpp llvm/tools/opt/opt.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Passes/PassBuilder.cpp b/llvm/lib/Passes/PassBuilder.cpp
index ed334574c3..0c0287f785 100644
--- a/llvm/lib/Passes/PassBuilder.cpp
+++ b/llvm/lib/Passes/PassBuilder.cpp
@@ -1967,7 +1967,7 @@ Error PassBuilder::parsePassPipeline(ModulePassManager &MPM,
                                   FunctionPipelineParsingCallbacks)) {
       if (FirstName == "codegenprepare") {
         MPM.addPass(RequireAnalysisPass<ProfileSummaryAnalysis, Module>());
-      }                              
+      }
       Pipeline = {{"function", std::move(*Pipeline)}};
     } else if (isLoopNestPassName(FirstName, LoopPipelineParsingCallbacks,
                                   UseMemorySSA)) {

``````````

</details>


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


More information about the llvm-commits mailing list