[llvm] [CodeGen][Remarks] Add the function name to the stack size remark (PR #69346)

via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 17 09:03:47 PDT 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 abd0d5d2626022d835c784b1fed557caf90e793f e75117c3324ed97bab555c53cd8a787eb1ecadfb -- llvm/lib/CodeGen/PrologEpilogInserter.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/CodeGen/PrologEpilogInserter.cpp b/llvm/lib/CodeGen/PrologEpilogInserter.cpp
index dd33b47a0260..0b8dcdcd6e33 100644
--- a/llvm/lib/CodeGen/PrologEpilogInserter.cpp
+++ b/llvm/lib/CodeGen/PrologEpilogInserter.cpp
@@ -337,7 +337,8 @@ bool PEI::runOnMachineFunction(MachineFunction &MF) {
     return MachineOptimizationRemarkAnalysis(DEBUG_TYPE, "StackSize",
                                              MF.getFunction().getSubprogram(),
                                              &MF.front())
-           << ore::NV("NumStackBytes", StackSize) << " stack bytes in function '"
+           << ore::NV("NumStackBytes", StackSize)
+           << " stack bytes in function '"
            << ore::NV("Function", MF.getFunction().getName()) << "'";
   });
 

``````````

</details>


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


More information about the llvm-commits mailing list