diff options
author | Hal Finkel <hfinkel@anl.gov> | 2015-08-31 20:42:38 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2015-08-31 20:42:38 +0000 |
commit | fb62ba2fd3f0858fbc4c982211d112a1e93f683c (patch) | |
tree | ee78e76f40ce7d2f9b1085c45a2fa7cdfbaf4d02 /lib/CodeGen/SelectionDAG/DAGCombiner.cpp | |
parent | 63384be23d17e10b9a5345d30918c85ba72b87ce (diff) |
[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
Diffstat (limited to 'lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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()); |