[llvm] [PPC] Replace PPCMergeStringPool with GlobalMerge for Linux (PR #114850)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 4 10:58:44 PST 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 88591aa0ca7e4d99da353d49f91ea63e43fb55e0 68cbbf18f21f9f350de8ef1b8541f47b09873d02 --extensions cpp -- llvm/lib/CodeGen/GlobalMerge.cpp llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/GlobalMerge.cpp b/llvm/lib/CodeGen/GlobalMerge.cpp
index 30f44e3d61..aa86aa7a2a 100644
--- a/llvm/lib/CodeGen/GlobalMerge.cpp
+++ b/llvm/lib/CodeGen/GlobalMerge.cpp
@@ -714,7 +714,7 @@ bool GlobalMergeImpl::run(Module &M) {
// Ignore all "required" globals:
if (isMustKeepGlobalVariable(&GV))
continue;
- auto checkUsers = [] (const GlobalVariable *GV) {
+ auto checkUsers = [](const GlobalVariable *GV) {
for (const User *CurrentUser : GV->users()) {
if (auto *I = dyn_cast<Instruction>(CurrentUser)) {
// Do not merge globals in exception pads.
``````````
</details>
https://github.com/llvm/llvm-project/pull/114850
More information about the llvm-commits
mailing list