[llvm] [MachineOutliner] Leaf Descendants (PR #90275)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 7 15:10:48 PDT 2024


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 e9adcc488f96a9f2b8c4344f5e3c7ca6639b9562 887ef5491d0ee1daa8d79417046000d1e06b94e5 -- llvm/include/llvm/Support/SuffixTree.h llvm/include/llvm/Support/SuffixTreeNode.h llvm/lib/CodeGen/MachineOutliner.cpp llvm/lib/Support/SuffixTree.cpp llvm/lib/Support/SuffixTreeNode.cpp llvm/unittests/Support/SuffixTreeTest.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Support/SuffixTree.cpp b/llvm/lib/Support/SuffixTree.cpp
index e868dfe513..0d2e5baf58 100644
--- a/llvm/lib/Support/SuffixTree.cpp
+++ b/llvm/lib/Support/SuffixTree.cpp
@@ -320,7 +320,7 @@ void SuffixTree::RepeatedSubstringIterator::advance() {
       if (auto *InternalChild =
               dyn_cast<SuffixTreeInternalNode>(ChildPair.second))
         InternalNodesToVisit.push_back(InternalChild);
-    
+
     // If length of repeated substring is below threshold, then skip it.
     if (Length < MinLength)
       continue;
@@ -332,7 +332,7 @@ void SuffixTree::RepeatedSubstringIterator::advance() {
 
     // Collect leaf children or leaf descendants by OutlinerLeafDescendants.
     if (!OutlinerLeafDescendants) {
-      for (auto &ChildPair : Curr->Children) 
+      for (auto &ChildPair : Curr->Children)
         if (auto *Leaf = dyn_cast<SuffixTreeLeafNode>(ChildPair.second))
           RepeatedSubstringStarts.push_back(Leaf->getSuffixIdx());
     } else {

``````````

</details>


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


More information about the llvm-commits mailing list