[llvm] [LV] Add a statistic for early exit vectorization (PR #145730)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 25 09:03:58 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/Transforms/Vectorize/LoopVectorize.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index 4f365b9f9..3af8817c4 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -175,8 +175,7 @@ const char LLVMLoopVectorizeFollowupEpilogue[] =
 STATISTIC(LoopsVectorized, "Number of loops vectorized");
 STATISTIC(LoopsAnalyzed, "Number of loops analyzed for vectorization");
 STATISTIC(LoopsEpilogueVectorized, "Number of epilogues vectorized");
-STATISTIC(LoopsEarlyExitVectorized, "Number of early exit loops vectorized"); 
-
+STATISTIC(LoopsEarlyExitVectorized, "Number of early exit loops vectorized");
 
 static cl::opt<bool> EnableEpilogueVectorization(
     "enable-epilogue-vectorization", cl::init(true), cl::Hidden,
@@ -10328,7 +10327,6 @@ bool LoopVectorizePass::processLoop(Loop *L) {
         if (BestEpiPlan.hasEarlyExit())
           ++LoopsEarlyExitVectorized;
 
-
         if (!Checks.hasChecks())
           DisableRuntimeUnroll = true;
       } else {

``````````

</details>


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


More information about the llvm-commits mailing list