diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2016-05-28 00:19:52 +0000 |
|---|---|---|
| committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2016-05-28 00:19:52 +0000 |
| commit | 7401516985bcffeb67db966028d4279058c5b05d (patch) | |
| tree | 42dbf628e6c88717ee6c1ab1d69e0b346047cb7b /llvm/lib/Target/AMDGPU/SIISelLowering.cpp | |
| parent | 5a7f09c5af24eca92cd2acf701734009351a0fd3 (diff) | |
| download | bcm5719-llvm-7401516985bcffeb67db966028d4279058c5b05d.tar.gz bcm5719-llvm-7401516985bcffeb67db966028d4279058c5b05d.zip | |
AMDGPU: Add fract intrinsic
Remove broken patterns matching it. This was matching the
unsafe math pattern and expanding the fix for the buggy instruction
from the pattern. The problems are also on CI. Remove the workarounds
and only use fract with unsafe math or from the intrinsic.
llvm-svn: 271078
Diffstat (limited to 'llvm/lib/Target/AMDGPU/SIISelLowering.cpp')
| -rw-r--r-- | llvm/lib/Target/AMDGPU/SIISelLowering.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp index c4e64dcda47..bc5fc6590f1 100644 --- a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp +++ b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp @@ -1656,6 +1656,10 @@ SDValue SITargetLowering::LowerINTRINSIC_WO_CHAIN(SDValue Op, case Intrinsic::amdgcn_ldexp: return DAG.getNode(AMDGPUISD::LDEXP, DL, VT, Op.getOperand(1), Op.getOperand(2)); + + case Intrinsic::amdgcn_fract: + return DAG.getNode(AMDGPUISD::FRACT, DL, VT, Op.getOperand(1)); + case Intrinsic::amdgcn_class: return DAG.getNode(AMDGPUISD::FP_CLASS, DL, VT, Op.getOperand(1), Op.getOperand(2)); |

