[llvm] [LICM] Use DomTreeUpdater version of SplitBlockPredecessors, nfc (PR #107190)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 23 01:46:39 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 ecc9aece72989461167ba39541dce51032c0d76d 842a1ab62bfaa2db5fa1418125370a853fd2dbfc --extensions h,cpp -- llvm/include/llvm/Transforms/Utils/LoopUtils.h llvm/lib/Transforms/Scalar/LICM.cpp llvm/lib/Transforms/Utils/LoopUtils.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Scalar/LICM.cpp b/llvm/lib/Transforms/Scalar/LICM.cpp
index 00bb03de5f..0e11b0f896 100644
--- a/llvm/lib/Transforms/Scalar/LICM.cpp
+++ b/llvm/lib/Transforms/Scalar/LICM.cpp
@@ -568,7 +568,8 @@ bool llvm::sinkRegion(DomTreeNode *N, AAResults *AA, LoopInfo *LI,
// We want to visit children before parents. We will enqueue all the parents
// before their children in the worklist and process the worklist in reverse
// order.
- SmallVector<BasicBlock *, 16> Worklist = collectChildrenInLoop(DT, N, CurLoop);
+ SmallVector<BasicBlock *, 16> Worklist =
+ collectChildrenInLoop(DT, N, CurLoop);
bool Changed = false;
for (BasicBlock *BB : reverse(Worklist)) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/107190
More information about the llvm-commits
mailing list