[llvm] [PowerPC] Do not string pool globals that are part of llvm used. (PR #66848)

via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 24 07:40:28 PST 2023


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 89a832435d786e5ce0668da3720db668beb10e70 d03571abb748f34e9fd886a4c83d58322be3078a -- llvm/lib/Target/PowerPC/PPCMergeStringPool.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/PowerPC/PPCMergeStringPool.cpp b/llvm/lib/Target/PowerPC/PPCMergeStringPool.cpp
index d6db056707..d9465e86d8 100644
--- a/llvm/lib/Target/PowerPC/PPCMergeStringPool.cpp
+++ b/llvm/lib/Target/PowerPC/PPCMergeStringPool.cpp
@@ -146,7 +146,7 @@ void PPCMergeStringPool::collectCandidateConstants(Module &M) {
   collectUsedGlobalVariables(M, UsedVCompiler, /*CompilerUsed=*/true);
   // Combine all of the Global Variables marked as used into a SmallPtrSet for
   // faster lookup inside the loop.
-  SmallPtrSet<GlobalValue*, 8> AllUsedGlobals;
+  SmallPtrSet<GlobalValue *, 8> AllUsedGlobals;
   AllUsedGlobals.insert(UsedV.begin(), UsedV.end());
   AllUsedGlobals.insert(UsedVCompiler.begin(), UsedVCompiler.end());
 

``````````

</details>


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


More information about the llvm-commits mailing list