[llvm] [llvm][GlobalOpt] Optimize statically resolvable IFuncs (PR #80606)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 5 10:03:23 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 659419ac2f05035cd8ff19806a9e48ccc725d3ba 929c23ec61f5805f8c3ff11d8ea4736ce74df241 -- llvm/lib/Transforms/IPO/GlobalOpt.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/IPO/GlobalOpt.cpp b/llvm/lib/Transforms/IPO/GlobalOpt.cpp
index 95a4a1f4f7..3e47a7946e 100644
--- a/llvm/lib/Transforms/IPO/GlobalOpt.cpp
+++ b/llvm/lib/Transforms/IPO/GlobalOpt.cpp
@@ -2445,7 +2445,9 @@ static bool OptimizeStaticIFuncs(Module &M) {
return Changed;
}
-static bool DeleteDeadIFuncs(Module &M, SmallPtrSetImpl<const Comdat *> &NotDiscardableComdats) {
+static bool
+DeleteDeadIFuncs(Module &M,
+ SmallPtrSetImpl<const Comdat *> &NotDiscardableComdats) {
bool Changed = false;
for (GlobalIFunc &IF : make_early_inc_range(M.ifuncs()))
if (deleteIfDead(IF, NotDiscardableComdats)) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/80606
More information about the llvm-commits
mailing list