diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2014-09-30 19:49:43 +0000 |
|---|---|---|
| committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2014-09-30 19:49:43 +0000 |
| commit | 272c50a1fec048bcbe59c80c6065f5a9623b3fa1 (patch) | |
| tree | cb0f66306fe609a917ae6d634a41d339713b2ee6 /llvm/lib/Target/R600/AMDGPUISelDAGToDAG.cpp | |
| parent | 3041443b5c6a9c6bdd2ad7eb9da908b626e76a22 (diff) | |
| download | bcm5719-llvm-272c50a1fec048bcbe59c80c6065f5a9623b3fa1.tar.gz bcm5719-llvm-272c50a1fec048bcbe59c80c6065f5a9623b3fa1.zip | |
R600/SI: Update VOP3b to not include obsolete operands
abs / neg are now part of the srcN_modifiers operands
llvm-svn: 218691
Diffstat (limited to 'llvm/lib/Target/R600/AMDGPUISelDAGToDAG.cpp')
| -rw-r--r-- | llvm/lib/Target/R600/AMDGPUISelDAGToDAG.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/llvm/lib/Target/R600/AMDGPUISelDAGToDAG.cpp b/llvm/lib/Target/R600/AMDGPUISelDAGToDAG.cpp index b598ac84513..32592129984 100644 --- a/llvm/lib/Target/R600/AMDGPUISelDAGToDAG.cpp +++ b/llvm/lib/Target/R600/AMDGPUISelDAGToDAG.cpp @@ -736,15 +736,16 @@ SDNode *AMDGPUDAGToDAGISel::SelectDIV_SCALE(SDNode *N) { = (VT == MVT::f64) ? AMDGPU::V_DIV_SCALE_F64 : AMDGPU::V_DIV_SCALE_F32; const SDValue Zero = CurDAG->getTargetConstant(0, MVT::i32); - + const SDValue False = CurDAG->getTargetConstant(0, MVT::i1); SDValue Ops[] = { - N->getOperand(0), - N->getOperand(1), - N->getOperand(2), - Zero, - Zero, - Zero, - Zero + Zero, // src0_modifiers + N->getOperand(0), // src0 + Zero, // src1_modifiers + N->getOperand(1), // src1 + Zero, // src2_modifiers + N->getOperand(2), // src2 + False, // clamp + Zero // omod }; return CurDAG->SelectNodeTo(N, Opc, VT, MVT::i1, Ops); |

