[llvm] [SelectionDAG] Make ARITH_FENCE support half and bfloat type (PR #90836)
via llvm-commits
llvm-commits at lists.llvm.org
Thu May 2 02:19:02 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 a015f015db21e02cbce4ff9d15d0b293e45d0831 065e985f5f3ac4a12f1134fe7d3d6b6573c96003 -- 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 00f94e48a3..362e924d3c 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
@@ -2826,7 +2826,8 @@ void DAGTypeLegalizer::SoftPromoteHalfResult(SDNode *N, unsigned ResNo) {
"result!");
case ISD::ARITH_FENCE:
- R = SoftPromoteHalfRes_ARITH_FENCE(N); break;
+ R = SoftPromoteHalfRes_ARITH_FENCE(N);
+ break;
case ISD::BITCAST: R = SoftPromoteHalfRes_BITCAST(N); break;
case ISD::ConstantFP: R = SoftPromoteHalfRes_ConstantFP(N); break;
case ISD::EXTRACT_VECTOR_ELT:
``````````
</details>
https://github.com/llvm/llvm-project/pull/90836
More information about the llvm-commits
mailing list