[llvm] [JumpThreading] Thread over BB with only an unconditional branch (PR #86312)

via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 22 10:18:12 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 dbbdee2ea2156170062813fb3d7f2c023d65e02d 7b9e2fbabb2c984dd841c2c1d5c7bc8e0a132d39 -- llvm/lib/Transforms/Utils/Local.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp
index 9760988e5c..3080df3633 100644
--- a/llvm/lib/Transforms/Utils/Local.cpp
+++ b/llvm/lib/Transforms/Utils/Local.cpp
@@ -1018,7 +1018,8 @@ CanRedirectPredsOfEmptyBBToSucc(BasicBlock *BB, BasicBlock *Succ,
   if (Succ->phis().empty())
     return false;
 
-  // BB must have multiple different uncommon predecessors that can be redirected to Succ
+  // BB must have multiple different uncommon predecessors that can be
+  // redirected to Succ
   if (BB->getUniquePredecessor() || pred_empty(BB))
     return false;
 

``````````

</details>


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


More information about the llvm-commits mailing list