[llvm] [BranchFolding] Fold fallthroughs into conditional tailcalls if profitable (PR #140476)

via llvm-commits llvm-commits at lists.llvm.org
Sun May 18 13:33:49 PDT 2025


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 HEAD~1 HEAD --extensions cpp -- llvm/lib/CodeGen/BranchFolding.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/CodeGen/BranchFolding.cpp b/llvm/lib/CodeGen/BranchFolding.cpp
index af2c40005..17c6fd095 100644
--- a/llvm/lib/CodeGen/BranchFolding.cpp
+++ b/llvm/lib/CodeGen/BranchFolding.cpp
@@ -1582,7 +1582,7 @@ ReoptimizeBlock:
             TII->removeBranch(*Pred);
             TII->insertBranch(*Pred, MBB, PredTBB, ReversedCond, Dl);
           }
-          
+
           PredAnalyzable =
               !TII->analyzeBranch(*Pred, PredTBB, PredFBB, PredCond, true);
 

``````````

</details>


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


More information about the llvm-commits mailing list