[llvm] [AArch64] Also implement PNR -> PNR copies. (PR #70682)

via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 30 09:28:22 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 f95b2f1acf1171abb0d00089fd4c9238753847e3 51d58121a57d46e83f140bbb5fe75a53271c872a -- 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 c54b1d9f340d..c9f7fef66c9f 100644
--- a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
+++ b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
@@ -4441,9 +4441,9 @@ void AArch64InstrInfo::copyPhysReg(MachineBasicBlock &MBB,
 
     if (PPRSrcReg != PPRDestReg) {
       auto NewMI = BuildMI(MBB, I, DL, get(AArch64::ORR_PPzPP), PPRDestReg)
-          .addReg(PPRSrcReg) // Pg
-          .addReg(PPRSrcReg)
-          .addReg(PPRSrcReg, getKillRegState(KillSrc));
+                       .addReg(PPRSrcReg) // Pg
+                       .addReg(PPRSrcReg)
+                       .addReg(PPRSrcReg, getKillRegState(KillSrc));
       if (DestIsPNR)
         NewMI.addDef(DestReg, RegState::Implicit);
     }

``````````

</details>


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


More information about the llvm-commits mailing list