[llvm] [DomTree] Store ReverseChildren as indices (NFC) (PR #73505)

via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 27 03:41:10 PST 2023


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 f21a70f9fe21539f70212ba2346c3db54f4d9980 5bc1fb1f188d55e9549cf3f52628e11c4faa1d1f -- llvm/include/llvm/Support/GenericDomTreeConstruction.h
``````````

</details>

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

``````````diff
diff --git a/llvm/include/llvm/Support/GenericDomTreeConstruction.h b/llvm/include/llvm/Support/GenericDomTreeConstruction.h
index 4ecf492b28..795c84825f 100644
--- a/llvm/include/llvm/Support/GenericDomTreeConstruction.h
+++ b/llvm/include/llvm/Support/GenericDomTreeConstruction.h
@@ -205,7 +205,8 @@ struct SemiNCAInfo {
         // Don't visit nodes more than once but remember to collect
         // ReverseChildren.
         if (SIT != NodeToInfo.end() && SIT->second.DFSNum != 0) {
-          if (Succ != BB) SIT->second.ReverseChildren.push_back(LastNum);
+          if (Succ != BB)
+            SIT->second.ReverseChildren.push_back(LastNum);
           continue;
         }
 

``````````

</details>


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


More information about the llvm-commits mailing list