AMDGPU: Use rcp for fdiv 1, x with fpmath metadata
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 26 Jul 2016 23:25:44 +0000 (23:25 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 26 Jul 2016 23:25:44 +0000 (23:25 +0000)
commite3862cdc933da4864598aa8616a33b076d99077c
treee394808494c9b8404e7afbd6b74d608ee91db503
parent685e8ff95305b35c7be889d4a0f82d2ca567779c
AMDGPU: Use rcp for fdiv 1, x with fpmath metadata

Using rcp should be OK for safe math usually, so this
should not be replacing the original fdiv.

llvm-svn: 276823
llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
llvm/test/CodeGen/AMDGPU/amdgpu-codegenprepare.ll
llvm/test/CodeGen/AMDGPU/rcp-pattern.ll
llvm/test/CodeGen/AMDGPU/reciprocal.ll [deleted file]