[llvm] [SLP] SLP's copyable elements based upon Main/Alt operations. (PR #124242)

via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 11 07:20: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 72791fef6d6c84b72cb961b288b25283bea97310 e9bd6d47df66d9cf45951d04b3b147fde10c5534 --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 24f47f5abd..bd33188390 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -4405,16 +4405,17 @@ private:
               DecrUnsched(I);
           // Handle a copy instruction dependencies.
           if (TE && TE->isAltOpCopy() && BundleMember->IsCopy) {
-            doForAllOpcodes(BundleMember->Inst, [BundleMember, &ReadyList](ScheduleData *CopyUse) {
-              if (BundleMember != CopyUse &&
-                  CopyUse->hasValidDependencies() &&
+            doForAllOpcodes(BundleMember->Inst, [BundleMember, &ReadyList](
+                                                    ScheduleData *CopyUse) {
+              if (BundleMember != CopyUse && CopyUse->hasValidDependencies() &&
                   CopyUse->incrementUnscheduledDeps(-1) == 0) {
                 ScheduleData *DepBundle = CopyUse->FirstInBundle;
                 assert(!DepBundle->IsScheduled &&
-                   "already scheduled bundle gets ready");
+                       "already scheduled bundle gets ready");
                 if (DepBundle->isReady()) {
                   ReadyList.insert(DepBundle);
-                  LLVM_DEBUG(dbgs() << "SLP:    gets ready (copyable): " << *DepBundle << "\n");
+                  LLVM_DEBUG(dbgs() << "SLP:    gets ready (copyable): "
+                                    << *DepBundle << "\n");
                 }
               }
             });

``````````

</details>


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


More information about the llvm-commits mailing list