[llvm] [SelectionDAG] Emit error instead of asserting for unsupported FP_EXTENDAssertion failed for fpextdouble to x86 fp80 (PR #182660)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 21 01:14:42 PST 2026
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 origin/main HEAD --extensions cpp -- llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</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 84dccf658..43a953c19 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
@@ -655,10 +655,10 @@ SDValue DAGTypeLegalizer::SoftenFloatRes_FP_EXTEND(SDNode *N) {
}
RTLIB::Libcall LC = RTLIB::getFPEXT(Op.getValueType(), N->getValueType(0));
- if(LC == RTLIB::UNKNOWN_LIBCALL){
+ if (LC == RTLIB::UNKNOWN_LIBCALL) {
DAG.getContext()->emitError("Unsupported FP_EXTEND!");
- if(IsStrict){
- ReplaceValueWith(SDValue(N, 1), Chain);
+ if (IsStrict) {
+ ReplaceValueWith(SDValue(N, 1), Chain);
}
return DAG.getPOISON(NVT);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/182660
More information about the llvm-commits
mailing list