[llvm] [CFG] Avoid introducing complex phi when removing empty blocks (PR #104887)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 19 17:51:30 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 ea8bb4d633683f5cbfd82491620be3056f347a02 12f7315b05e88b302d7b077a566e6a56cdd6a950 --extensions cpp -- 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 71c464417a..b64ae9391c 100644
--- a/llvm/lib/Transforms/Utils/Local.cpp
+++ b/llvm/lib/Transforms/Utils/Local.cpp
@@ -1047,7 +1047,7 @@ CanRedirectPredsOfEmptyBBToSucc(BasicBlock *BB, BasicBlock *Succ,
// Check whether removing BB will make the phis in its Succ will have too
// many incoming entries. This function does not check whether BB is foldable
-// or not.
+// or not.
static bool introduceTooComplexPhi(BasicBlock *BB) {
// Check BB only has phi and an unconditional branch
BranchInst *Branch = dyn_cast<BranchInst>(BB->getFirstNonPHIOrDbg(true));
``````````
</details>
https://github.com/llvm/llvm-project/pull/104887
More information about the llvm-commits
mailing list