[llvm] [SDAG] Generalize FSINCOS type legalization (NFC) (PR #116848)

via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 19 09:48:59 PST 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 b0afa6bab9581abc91f23c854b3bb45095cbb057 3346889838e445cdba0fd667a38cda8451294efc --extensions cpp,h -- 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 572e7e9b64..3f8d117400 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
@@ -2767,8 +2767,8 @@ void DAGTypeLegalizer::PromoteFloatResult(SDNode *N, unsigned ResNo) {
     case ISD::FFREXP:     R = PromoteFloatRes_FFREXP(N); break;
 
     case ISD::FSINCOS:
-                          R = PromoteFloatRes_UnaryWithTwoFPResults(N);
-                          break;
+      R = PromoteFloatRes_UnaryWithTwoFPResults(N);
+      break;
 
     case ISD::FP_ROUND:   R = PromoteFloatRes_FP_ROUND(N); break;
     case ISD::STRICT_FP_ROUND:

``````````

</details>


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


More information about the llvm-commits mailing list