[llvm] SystemZ: Fold copy of vector immediate to gr128 (PR #90706)

via llvm-commits llvm-commits at lists.llvm.org
Fri May 3 01:20:40 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 edbe6ebb4dbc5a8e3207733c5fadd15da9b83fc9 5f92f135e8955965b7ed16ffe54ebe268ebb2d8e -- llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp llvm/lib/Target/SystemZ/SystemZInstrInfo.h
``````````

</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 9f363ee2d1..3238b62218 100644
--- a/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp
@@ -643,7 +643,7 @@ bool SystemZInstrInfo::foldImmediate(MachineInstr &UseMI, MachineInstr &DefMI,
 
   if (DefOpc == SystemZ::VGBM) {
     int64_t ImmVal = DefMI.getOperand(1).getImm();
-    if (ImmVal !=0) // TODO: Handle other values
+    if (ImmVal != 0) // TODO: Handle other values
       return false;
 
     // Fold gr128 = COPY (vr128 VGBM imm)

``````````

</details>


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


More information about the llvm-commits mailing list