[DAGCombine] Use getSetCCResultType utility function
authorHal Finkel <hfinkel@anl.gov>
Mon, 31 Aug 2015 20:42:38 +0000 (20:42 +0000)
committerHal Finkel <hfinkel@anl.gov>
Mon, 31 Aug 2015 20:42:38 +0000 (20:42 +0000)
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

lib/CodeGen/SelectionDAG/DAGCombiner.cpp

index 1cb128328841139bc7ff3ffc39a418dc623a399b..cb08da7c91116d45d17a03c621356a0fd5505c2a 100644 (file)
@@ -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());