We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad2ac08 commit 303a487Copy full SHA for 303a487
llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -3853,7 +3853,7 @@ bool SelectionDAGLegalize::ExpandNode(SDNode *Node) {
3853
break;
3854
case ISD::FP_TO_FP16:
3855
LLVM_DEBUG(dbgs() << "Legalizing FP_TO_FP16\n");
3856
- if (!TLI.useSoftFloat() && Node->getFlags().hasApproximateFuncs()) {
+ if (Node->getFlags().hasApproximateFuncs() && !TLI.useSoftFloat()) {
3857
SDValue Op = Node->getOperand(0);
3858
MVT SVT = Op.getSimpleValueType();
3859
if ((SVT == MVT::f64 || SVT == MVT::f80) &&
0 commit comments