[llvm] [AArch64] Fix incorrect big-endian spill in foldMemoryOperandImpl (PR #65601)

via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 27 09:21:28 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 339fc5e6b013dfdb185f1f1e9494076bd9d2a3cd 73f87b3cccabdadffdd14b5d439d41395697abc0 -- llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
index f6f8616baa4a..44341a25a836 100644
--- a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
+++ b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
@@ -5466,7 +5466,8 @@ MachineInstr *AArch64InstrInfo::foldMemoryOperandImpl(
       assert(SrcMO.getSubReg() == 0 &&
              "Unexpected subreg on physical register");
       storeRegToStackSlot(MBB, InsertPt, AArch64::XZR, SrcMO.isKill(),
-                          FrameIndex, &AArch64::GPR64RegClass, &TRI, Register());
+                          FrameIndex, &AArch64::GPR64RegClass, &TRI,
+                          Register());
       return &*--InsertPt;
     }
 

``````````

</details>


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


More information about the llvm-commits mailing list