[llvm] [SLP]Support revectorization of the previously vectorized scalars (PR #133091)

via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 26 07:14:15 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 8f863fcd77e15caf3b7fde089adc223b0c4fb103 90fa80e9c14bdb9e3c18f827cb8fe6f6ff49ecd8 --extensions cpp -- llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
index af3f61b985..3e4036474d 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -19127,7 +19127,7 @@ void BoUpSLP::BlockScheduling::resetSchedule() {
       SD->setScheduled(/*Scheduled=*/false);
       SD->resetUnscheduledDeps();
     }
-    for (ScheduleBundle *Bundle: getScheduleBundles(I)) {
+    for (ScheduleBundle *Bundle : getScheduleBundles(I)) {
       assert(isInSchedulingRegion(*Bundle) &&
              "ScheduleBundle not in scheduling region");
       Bundle->setScheduled(/*Scheduled=*/false);

``````````

</details>


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


More information about the llvm-commits mailing list