AMDGPU/GlobalISel: Implement expansion for rsq.clamp
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Sat, 25 Jul 2020 20:26:33 +0000 (16:26 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 6 Aug 2020 14:23:25 +0000 (10:23 -0400)
commit5a503521e7b757bda70325f4c01bdbc0f4e3128e
treed22039887a5c7f3de3c5251d2701ed9aeba4354c
parentc015cbc68b80e02b651988855b61b588f5069ef6
AMDGPU/GlobalISel: Implement expansion for rsq.clamp

Not sure why we handle this removed instruction on newer subtargets
for this one and no others, but maintain compatibility with the DAG.
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.h
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-amdgcn.rsq.clamp.mir [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.rsq.clamp.ll [new file with mode: 0644]