[llvm] [AArch64] Fix tryMergeAdjacentSTG function in PrologEpilog pass (PR #68873)

via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 6 22:51:45 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 0ce6255a50584863c2f462390cac6a63ccb5f136 9350a2bcb510720ac7f12e8491c5ed76e2cbf181 -- 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 260f89dfd260..404fcafb5046 100644
--- a/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
@@ -3772,7 +3772,7 @@ MachineBasicBlock::iterator tryMergeAdjacentSTG(MachineBasicBlock::iterator II,
   // the insert list, this liveness check is done (which is not needed).
   LivePhysRegs LR(*(MBB->getParent()->getSubtarget().getRegisterInfo()));
   LR.addLiveOuts(*MBB);
-  for (auto I = MBB->rbegin(); ; ++I) {
+  for (auto I = MBB->rbegin();; ++I) {
     MachineInstr &MIns = *I;
     if (MIns == InsertI)
       break;

``````````

</details>


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


More information about the llvm-commits mailing list