[llvm] [SystemZ] Handle address clobbering in splitMove(). (PR #92105)

via llvm-commits llvm-commits at lists.llvm.org
Tue May 14 05:09:35 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 c4a9a374749deb5f2a932a7d4ef9321be1b2ae5d 50e39cf878a5642c19ca67d4932e14d44a6a0133 -- llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp b/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp
index 16bbfd44ef..4990825d75 100644
--- a/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp
@@ -107,7 +107,8 @@ void SystemZInstrInfo::splitMove(MachineBasicBlock::iterator MI,
     // If Reg128 was killed, set kill flag on MI.
     unsigned Reg128UndefImpl = (Reg128Undef | RegState::Implicit);
     MachineInstrBuilder(MF, HighPartMI).addReg(Reg128, Reg128UndefImpl);
-    MachineInstrBuilder(MF, LowPartMI).addReg(Reg128, (Reg128UndefImpl | Reg128Killed));
+    MachineInstrBuilder(MF, LowPartMI)
+        .addReg(Reg128, (Reg128UndefImpl | Reg128Killed));
   } else {
     // If HighPartMI clobbers any of the address registers, it needs to come
     // after LowPartMI.

``````````

</details>


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


More information about the llvm-commits mailing list