[llvm] [AArch64][GlobalISel] Improve and expand fcopysign lowering (PR #71283)

via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 4 07:11:57 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 3d870434b8310499ffb56f5294511344cf093cb4 a39ed08383c86f5e45b4035058936feae5c652d1 -- llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.h
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp b/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
index 7365d5882..9eabc9e95 100644
--- a/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
@@ -274,8 +274,9 @@ MachineIRBuilder::buildDeleteTrailingVectorElements(const DstOp &Res,
           (ResTy.isVector() &&
            (ResTy.getElementType() == Op0Ty.getElementType()))) &&
          "Different vector element types");
-  assert((ResTy.isScalar() || (ResTy.getNumElements() < Op0Ty.getNumElements())) &&
-         "Op0 has fewer elements");
+  assert(
+      (ResTy.isScalar() || (ResTy.getNumElements() < Op0Ty.getNumElements())) &&
+      "Op0 has fewer elements");
 
   auto Unmerge = buildUnmerge(Op0Ty.getElementType(), Op0);
   if (ResTy.isScalar())

``````````

</details>


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


More information about the llvm-commits mailing list