[llvm] [GenericDomTree][NFC] Use llvm algorithms (PR #97104)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 2 20:46:05 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 c44e9ff691a10cd900b93d9ff4e0ada355ca82d7 49f2c91e6f25e8985f34b6c6e9cc8635a667dd02 -- llvm/include/llvm/Support/GenericDomTree.h 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/GenericDomTree.h b/llvm/include/llvm/Support/GenericDomTree.h
index cea5cc0c46..ec596f3b94 100644
--- a/llvm/include/llvm/Support/GenericDomTree.h
+++ b/llvm/include/llvm/Support/GenericDomTree.h
@@ -875,10 +875,10 @@ protected:
}
bool NewBBDominatesNewBBSucc =
- llvm::none_of(inverse_children<N>(NewBBSucc), [&](const auto *Pred) {
- return Pred != NewBB && !dominates(NewBBSucc, Pred) &&
- isReachableFromEntry(Pred);
- });
+ llvm::none_of(inverse_children<N>(NewBBSucc), [&](const auto *Pred) {
+ return Pred != NewBB && !dominates(NewBBSucc, Pred) &&
+ isReachableFromEntry(Pred);
+ });
// Create the new dominator tree node... and set the idom of NewBB.
DomTreeNodeBase<NodeT> *NewBBNode = addNewBlock(NewBB, NewBBIDom);
``````````
</details>
https://github.com/llvm/llvm-project/pull/97104
More information about the llvm-commits
mailing list