[llvm] [BOLT] CDSplit: A New 3-Way Function Splitting Algorithm (PR #72225)

via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 15 13:12:40 PST 2023


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 5535e48be25f9eeece0a9b89f6e0fc80bb62843c be3565acd567225e109c3a3d1dcab76221b1ade0 -- bolt/include/bolt/Passes/CDSplit.h bolt/lib/Passes/CDSplit.cpp bolt/include/bolt/Core/BinaryBasicBlock.h bolt/include/bolt/Core/BinaryContext.h bolt/include/bolt/Core/BinaryFunction.h bolt/include/bolt/Core/FunctionLayout.h bolt/include/bolt/Passes/SplitFunctions.h bolt/lib/Core/BinaryBasicBlock.cpp bolt/lib/Core/BinaryContext.cpp bolt/lib/Core/BinaryEmitter.cpp bolt/lib/Core/BinaryFunction.cpp bolt/lib/Passes/BinaryPasses.cpp bolt/lib/Passes/IndirectCallPromotion.cpp bolt/lib/Passes/SplitFunctions.cpp bolt/lib/Rewrite/BinaryPassManager.cpp bolt/lib/Rewrite/RewriteInstance.cpp bolt/lib/Utils/CommandLineOpts.cpp
``````````

</details>

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

``````````diff
diff --git a/bolt/lib/Rewrite/BinaryPassManager.cpp b/bolt/lib/Rewrite/BinaryPassManager.cpp
index 8d776484ef..daa54d8d5e 100644
--- a/bolt/lib/Rewrite/BinaryPassManager.cpp
+++ b/bolt/lib/Rewrite/BinaryPassManager.cpp
@@ -178,9 +178,9 @@ static cl::opt<bool>
     PrintSplit("print-split", cl::desc("print functions after code splitting"),
                cl::Hidden, cl::cat(BoltOptCategory));
 
-static cl::opt<bool>
-    PrintCDSplit("print-cdsplit", cl::desc("print functions after cdsplit"),
-               cl::Hidden, cl::cat(BoltOptCategory));
+static cl::opt<bool> PrintCDSplit("print-cdsplit",
+                                  cl::desc("print functions after cdsplit"),
+                                  cl::Hidden, cl::cat(BoltOptCategory));
 
 static cl::opt<bool>
     PrintStoke("print-stoke", cl::desc("print functions after stoke analysis"),

``````````

</details>


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


More information about the llvm-commits mailing list