[llvm] [TailDup] Delay aggressive computed-goto taildup to after RegAlloc. (PR #150911)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 28 02:40:52 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,h -- llvm/include/llvm/CodeGen/MachineBasicBlock.h llvm/lib/CodeGen/TailDuplicator.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/CodeGen/MachineBasicBlock.h b/llvm/include/llvm/CodeGen/MachineBasicBlock.h
index 39345ced8..050b92f47 100644
--- a/llvm/include/llvm/CodeGen/MachineBasicBlock.h
+++ b/llvm/include/llvm/CodeGen/MachineBasicBlock.h
@@ -326,8 +326,8 @@ public:
/// Returns true if the original IR terminator is an `indirectbr`. This
/// typically corresponds to a `goto` in C, rather than jump tables.
bool terminatorIsComputedGoto() const {
- return back().isIndirectBranch() &&
- !succ_empty() && llvm::all_of(successors(), [](const MachineBasicBlock *Succ) {
+ return back().isIndirectBranch() && !succ_empty() &&
+ llvm::all_of(successors(), [](const MachineBasicBlock *Succ) {
return Succ->isIRBlockAddressTaken();
});
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/150911
More information about the llvm-commits
mailing list