From: Craig Topper Date: Sat, 14 Dec 2019 22:40:43 +0000 (-0800) Subject: [LegalizeTypes] In PromoteFloatOp_SETCC, don't both querying for transforming the... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=95ce8f94986c7d246c381757f6afbc00fe7bdbfb;p=platform%2Fupstream%2Fllvm.git [LegalizeTypes] In PromoteFloatOp_SETCC, don't both querying for transforming the result type. The result type is already legal, is doesnt' need to be transformed. --- diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp index a563845..8c96dcf 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp @@ -2019,12 +2019,11 @@ SDValue DAGTypeLegalizer::PromoteFloatOp_SELECT_CC(SDNode *N, unsigned OpNo) { // code. SDValue DAGTypeLegalizer::PromoteFloatOp_SETCC(SDNode *N, unsigned OpNo) { EVT VT = N->getValueType(0); - EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), VT); SDValue Op0 = GetPromotedFloat(N->getOperand(0)); SDValue Op1 = GetPromotedFloat(N->getOperand(1)); ISD::CondCode CCCode = cast(N->getOperand(2))->get(); - return DAG.getSetCC(SDLoc(N), NVT, Op0, Op1, CCCode); + return DAG.getSetCC(SDLoc(N), VT, Op0, Op1, CCCode); }