[llvm] delete dead stack slots (#104) (PR #72633)

via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 17 02:00:56 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 1c05fe350064aa3a1784bb09829a07d501842d97 df700d9436b94c4252c052a44c5e1ec650792fa6 -- llvm/lib/CodeGen/StackColoring.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/CodeGen/StackColoring.cpp b/llvm/lib/CodeGen/StackColoring.cpp
index 98429983eb..38163db020 100644
--- a/llvm/lib/CodeGen/StackColoring.cpp
+++ b/llvm/lib/CodeGen/StackColoring.cpp
@@ -1252,7 +1252,7 @@ bool StackColoring::runOnMachineFunction(MachineFunction &Func) {
     int Slot = SortedSlots[I];
     if (Intervals[Slot]->empty()) {
       if (InterestingSlots.test(Slot) && !ConservativeSlots.test(Slot)) {
-        RemovedSlots+=1;
+        RemovedSlots += 1;
         ReducedSize += MFI->getObjectSize(Slot);
         MFI->RemoveStackObject(Slot);
       }

``````````

</details>


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


More information about the llvm-commits mailing list