[llvm] [MachinePipeliner] Limit the number of stores in BB (PR #154940)

via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 22 06:10:01 PDT 2025


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 HEAD~1 HEAD --extensions cpp -- llvm/lib/CodeGen/MachinePipeliner.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/CodeGen/MachinePipeliner.cpp b/llvm/lib/CodeGen/MachinePipeliner.cpp
index 7579c20b2..85744225e 100644
--- a/llvm/lib/CodeGen/MachinePipeliner.cpp
+++ b/llvm/lib/CodeGen/MachinePipeliner.cpp
@@ -194,11 +194,12 @@ static cl::opt<bool>
     MVECodeGen("pipeliner-mve-cg", cl::Hidden, cl::init(false),
                cl::desc("Use the MVE code generator for software pipelining"));
 
-/// A command line argument to limit the number of store instructions in the target basic block.
-static cl::opt<unsigned>
-SwpMaxNumStores("pipeliner-max-num-stores",
-                      cl::desc("Maximum number of stores allwed in the target loop."),
-                      cl::Hidden, cl::init(100));
+/// A command line argument to limit the number of store instructions in the
+/// target basic block.
+static cl::opt<unsigned> SwpMaxNumStores(
+    "pipeliner-max-num-stores",
+    cl::desc("Maximum number of stores allwed in the target loop."), cl::Hidden,
+    cl::init(100));
 
 namespace llvm {
 
@@ -563,7 +564,6 @@ bool MachinePipeliner::canPipelineLoop(MachineLoop &L) {
              << "Too many store instructions in the loop: "
              << ore::NV("NumStores", NumStores) << " > "
              << ore::NV("SwpMaxNumStores", SwpMaxNumStores) << ".";
-
     });
     ++NumFailTooManyStores;
     return false;

``````````

</details>


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


More information about the llvm-commits mailing list