[compiler-rt] [llvm] Recommit "[FunctionAttrs] deduce attr `cold` on functions if all CG paths call a `cold` function" (PR #105559)

via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 21 11:01:42 PDT 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 69a0af756b921ad445eb9684f325d27a1c3a13b8 7abe294a44b3aa19bb1d10a14931a3464e815241 --extensions cpp -- compiler-rt/test/metadata/uar.cpp llvm/lib/Transforms/IPO/FunctionAttrs.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
index 603a1565e4..53568ae35d 100644
--- a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
+++ b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
@@ -1746,7 +1746,6 @@ static bool canReturn(Function &F) {
   return false;
 }
 
-
 // Set the noreturn function attribute if possible.
 static void addNoReturnAttrs(const SCCNodeSet &SCCNodes,
                              SmallSet<Function *, 8> &Changed) {

``````````

</details>


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


More information about the llvm-commits mailing list