The UINT_TO_FP is immediately converted to SINT_TO_FP when the node is re-evaluated because we'll detect that the sign bit is zero.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319234
91177308-0d34-0410-b5e6-
96231b3b80d8
InVT.getVectorNumElements());
SDValue P = DAG.getNode(ISD::ZERO_EXTEND, dl, DstVT, Op0);
- if (TLI.isOperationLegal(ISD::UINT_TO_FP, DstVT))
- return DAG.getNode(ISD::UINT_TO_FP, dl, VT, P);
-
+ // UINT_TO_FP isn't legal without AVX512 so use SINT_TO_FP.
return DAG.getNode(ISD::SINT_TO_FP, dl, VT, P);
}