[llvm] [AArch64] Add streaming-mode stack hazards. (PR #98956)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 15 13:37:32 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 deff3afd35d4f301fe74d20cf9b180c79d2b7016 2912ad2f85d52f6f9c5e848a61678869464c77e5 --extensions h,cpp -- llvm/lib/Target/AArch64/AArch64FrameLowering.cpp llvm/lib/Target/AArch64/AArch64FrameLowering.h llvm/lib/Target/AArch64/AArch64MachineFunctionInfo.h
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp b/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
index 58cfa42b6d..8a330a18a5 100644
--- a/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
@@ -3530,8 +3530,7 @@ void AArch64FrameLowering::determineStackHazardSlot(
 
   // Stack hazards are only needed in streaming functions.
   SMEAttrs Attrs(MF.getFunction());
-  if (!StackHazardInNonStreaming &&
-      Attrs.hasNonStreamingInterfaceAndBody())
+  if (!StackHazardInNonStreaming && Attrs.hasNonStreamingInterfaceAndBody())
     return;
 
   MachineFrameInfo &MFI = MF.getFrameInfo();

``````````

</details>


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


More information about the llvm-commits mailing list