[llvm] Move assertion for AdjustsStack from PEI to MachineVerifier. (PR #85698)

via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 18 13:47:18 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 09bc6abba6e226ad5e9d18d4365690d6f04de21a 4d1c1a9dfee3e8c91a9361e3d465f163c7e0a69b -- llvm/lib/CodeGen/MachineVerifier.cpp llvm/lib/CodeGen/PrologEpilogInserter.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp
index 005efe48ac..c2c5e7a63a 100644
--- a/llvm/lib/CodeGen/MachineVerifier.cpp
+++ b/llvm/lib/CodeGen/MachineVerifier.cpp
@@ -3699,7 +3699,8 @@ void MachineVerifier::verifyStackFrame() {
           report("FrameSetup is after another FrameSetup", &I);
         if (!MRI->isSSA() && !MF->getFrameInfo().adjustsStack())
           report("AdjustsStack not set in presence of a frame pseudo "
-                 "instruction.", &I);
+                 "instruction.",
+                 &I);
         BBState.ExitValue -= TII->getFrameTotalSize(I);
         BBState.ExitIsSetup = true;
       }
@@ -3717,7 +3718,8 @@ void MachineVerifier::verifyStackFrame() {
         }
         if (!MRI->isSSA() && !MF->getFrameInfo().adjustsStack())
           report("AdjustsStack not set in presence of a frame pseudo "
-                 "instruction.", &I);
+                 "instruction.",
+                 &I);
         BBState.ExitValue += Size;
         BBState.ExitIsSetup = false;
       }

``````````

</details>


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


More information about the llvm-commits mailing list