[llvm] [SDISel][Combine] Constant fold FP16_TO_FP (PR #94790)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 7 13:28:07 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 bd6e324b67cdadde2593327753e99782146d9bf8 c712e12351adea9f035ec91247a6cb822acc4c1f -- llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 25061f1a48..70b3c7d2fa 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -26589,8 +26589,8 @@ SDValue DAGCombiner::visitFP16_TO_FP(SDNode *N) {
   // Sometimes constants manage to survive very late in the pipeline, e.g.,
   // because they are wrapped inside the <1 x f16> type. Try one last time to
   // get rid of them.
-  SDValue Folded = DAG.FoldConstantArithmetic(
-      N->getOpcode(), SDLoc(N), N->getValueType(0), {N0});
+  SDValue Folded = DAG.FoldConstantArithmetic(N->getOpcode(), SDLoc(N),
+                                              N->getValueType(0), {N0});
   return Folded;
 }
 

``````````

</details>


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


More information about the llvm-commits mailing list