[llvm] Implement SoftPromoteHalf for FFREXP. (PR #74076)

via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 1 05:45:43 PST 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 da86d4a8c956f0fcee21444eb6de9f05d39d6574 5db539d7fed0eae3268f82bc47e12fd76c5e03ea -- llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
index c4605a6b95..ccbbcf202a 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
@@ -2774,7 +2774,9 @@ void DAGTypeLegalizer::SoftPromoteHalfResult(SDNode *N, unsigned ResNo) {
   case ISD::FPOWI:
   case ISD::FLDEXP:      R = SoftPromoteHalfRes_ExpOp(N); break;
 
-  case ISD::FFREXP:      R = SoftPromoteHalfRes_FFREXP(N); break;
+  case ISD::FFREXP:
+    R = SoftPromoteHalfRes_FFREXP(N);
+    break;
 
   case ISD::LOAD:        R = SoftPromoteHalfRes_LOAD(N); break;
   case ISD::SELECT:      R = SoftPromoteHalfRes_SELECT(N); break;

``````````

</details>


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


More information about the llvm-commits mailing list