[llvm] [DomTree] Remove redundant getNodeForBlock. NFC (PR #215045)

via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 8 18:35:13 PDT 2026


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 origin/main HEAD --extensions h -- llvm/include/llvm/Support/GenericDomTreeConstruction.h --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</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 f644ddc1b..11ed3aca3 100644
--- a/llvm/include/llvm/Support/GenericDomTreeConstruction.h
+++ b/llvm/include/llvm/Support/GenericDomTreeConstruction.h
@@ -604,7 +604,8 @@ template <typename DomTreeT> struct SemiNCAInfo {
       if (DT.getNode(W))
         continue; // Already calculated the node before
 
-      // W's dominator has a smaller DFS number, so its tree node already exists.
+      // W's dominator has a smaller DFS number, so its tree node already
+      // exists.
       NodePtr ImmDom = getIDom(W);
       TreeNodePtr IDomNode = DT.getNode(ImmDom);
       assert(IDomNode);

``````````

</details>


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


More information about the llvm-commits mailing list