From: Hal Finkel Date: Mon, 31 Aug 2015 20:42:38 +0000 (+0000) Subject: [DAGCombine] Use getSetCCResultType utility function X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fb62ba2fd3f0858fbc4c982211d112a1e93f683c;p=oota-llvm.git [DAGCombine] Use getSetCCResultType utility function DAGCombine has a utility wrapper around TLI's getSetCCResultType; use it in the one place in DAGCombine still directly calling the TLI function. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246482 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 1cb12832884..cb08da7c911 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -8500,7 +8500,7 @@ SDValue DAGCombiner::visitFSQRT(SDNode *N) { // Unfortunately, RV is now NaN if the input was exactly 0. // Select out this case and force the answer to 0. SDValue Zero = DAG.getConstantFP(0.0, DL, VT); - EVT CCVT = TLI.getSetCCResultType(DAG.getDataLayout(), *DAG.getContext(), VT); + EVT CCVT = getSetCCResultType(VT); SDValue ZeroCmp = DAG.getSetCC(DL, CCVT, N->getOperand(0), Zero, ISD::SETEQ); AddToWorklist(ZeroCmp.getNode()); AddToWorklist(RV.getNode());