[llvm-branch-commits] [llvm-branch] r165966 - /llvm/branches/R600/lib/Target/AMDGPU/R600Instructions.td
Tom Stellard
thomas.stellard at amd.com
Mon Oct 15 13:53:40 PDT 2012
Author: tstellar
Date: Mon Oct 15 15:53:39 2012
New Revision: 165966
URL: http://llvm.org/viewvc/llvm-project?rev=165966&view=rev
Log:
R600: add a pattern for fsqrt
Patch by: Vincent Lejeune
Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
Modified:
llvm/branches/R600/lib/Target/AMDGPU/R600Instructions.td
Modified: llvm/branches/R600/lib/Target/AMDGPU/R600Instructions.td
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/R600/lib/Target/AMDGPU/R600Instructions.td?rev=165966&r1=165965&r2=165966&view=diff
==============================================================================
--- llvm/branches/R600/lib/Target/AMDGPU/R600Instructions.td (original)
+++ llvm/branches/R600/lib/Target/AMDGPU/R600Instructions.td Mon Oct 15 15:53:39 2012
@@ -1038,6 +1038,9 @@
def : Pat<(fp_to_uint R600_Reg32:$src),
(FLT_TO_UINT_eg (TRUNC R600_Reg32:$src))>;
+ def : Pat<(fsqrt R600_Reg32:$src),
+ (MUL R600_Reg32:$src, (RECIPSQRT_CLAMPED_eg R600_Reg32:$src))>;
+
//===----------------------------------------------------------------------===//
// Memory read/write instructions
//===----------------------------------------------------------------------===//
More information about the llvm-branch-commits
mailing list