diff options
author | Sanjay Patel <spatel@rotateright.com> | 2016-10-18 18:36:49 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2016-10-18 18:36:49 +0000 |
commit | 19601fa58772d1f3213e969bd8b2123d7918bf91 (patch) | |
tree | e0f48abc44a5c9af856aa552f859f42dfdbf0754 /llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp | |
parent | efdc36c80202653e7f6469565e9cfabc9355786b (diff) | |
download | bcm5719-llvm-19601fa58772d1f3213e969bd8b2123d7918bf91.tar.gz bcm5719-llvm-19601fa58772d1f3213e969bd8b2123d7918bf91.zip |
revert r284495: [Target] remove TargetRecip class
There's something wrong with the StringRef usage while parsing the attribute string.
llvm-svn: 284513
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp')
-rw-r--r-- | llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp b/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp index ac6c7e33fb3..03833609a77 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp +++ b/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp @@ -2859,9 +2859,10 @@ const char* AMDGPUTargetLowering::getTargetNodeName(unsigned Opcode) const { } SDValue AMDGPUTargetLowering::getRsqrtEstimate(SDValue Operand, - SelectionDAG &DAG, int Enabled, - int &RefinementSteps, + DAGCombinerInfo &DCI, + unsigned &RefinementSteps, bool &UseOneConstNR) const { + SelectionDAG &DAG = DCI.DAG; EVT VT = Operand.getValueType(); if (VT == MVT::f32) { @@ -2876,8 +2877,9 @@ SDValue AMDGPUTargetLowering::getRsqrtEstimate(SDValue Operand, } SDValue AMDGPUTargetLowering::getRecipEstimate(SDValue Operand, - SelectionDAG &DAG, int Enabled, - int &RefinementSteps) const { + DAGCombinerInfo &DCI, + unsigned &RefinementSteps) const { + SelectionDAG &DAG = DCI.DAG; EVT VT = Operand.getValueType(); if (VT == MVT::f32) { |