[llvm] [AArch64] Bail out of HomogeneousPrologEpilog for functions with swif… (PR #67417)

via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 26 05:09:00 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 a09e32e5fe13e3b64bef1defddf71a9e83022e76 207800fb2e080f2fff75666752ac8669c2d08dbb -- llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
``````````

</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 a529e03a91b0..5bc42a5e796e 100644
--- a/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
@@ -796,8 +796,8 @@ void AArch64FrameLowering::emitZeroCallUsedRegs(BitVector RegsToZero,
   for (MCRegister Reg : FPRsToZero.set_bits())
     if (HasSVE)
       BuildMI(MBB, MBBI, DL, TII.get(AArch64::DUP_ZI_D), Reg)
-        .addImm(0)
-        .addImm(0);
+          .addImm(0)
+          .addImm(0);
     else
       BuildMI(MBB, MBBI, DL, TII.get(AArch64::MOVIv2d_ns), Reg).addImm(0);
 
@@ -1943,14 +1943,15 @@ void AArch64FrameLowering::authenticateLR(MachineFunction &MF,
                             MBBI->getOpcode() == AArch64::RET);
   if (Subtarget.hasPAuth() && TerminatorIsCombinable && !NeedsWinCFI &&
       !MF.getFunction().hasFnAttribute(Attribute::ShadowCallStack)) {
-    BuildMI(MBB, MBBI, DL,
-            TII->get(MFI.shouldSignWithBKey() ? AArch64::RETAB : AArch64::RETAA))
+    BuildMI(
+        MBB, MBBI, DL,
+        TII->get(MFI.shouldSignWithBKey() ? AArch64::RETAB : AArch64::RETAA))
         .copyImplicitOps(*MBBI);
     MBB.erase(MBBI);
   } else {
-    BuildMI(
-        MBB, MBBI, DL,
-        TII->get(MFI.shouldSignWithBKey() ? AArch64::AUTIBSP : AArch64::AUTIASP))
+    BuildMI(MBB, MBBI, DL,
+            TII->get(MFI.shouldSignWithBKey() ? AArch64::AUTIBSP
+                                              : AArch64::AUTIASP))
         .setMIFlag(MachineInstr::FrameDestroy);
 
     if (EmitAsyncCFI) {

``````````

</details>


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


More information about the llvm-commits mailing list