[PATCH] Use rsqrt (X86) to speed up reciprocal square root calcs (PR20900)
Sanjay Patel
spatel at rotateright.com
Thu Oct 9 18:38:05 PDT 2014
This version of the patch brings the 2-constant NR builder into DAGCombiner and adds a target-specified boolean to select whether we should use the 2-constant version or the 1-constant version.
We can add a command-line override for the NR selector in a subsequent patch.
http://reviews.llvm.org/D5658
Files:
include/llvm/Target/TargetLowering.h
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/PowerPC/PPCISelLowering.h
lib/Target/X86/X86.td
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86ISelLowering.h
lib/Target/X86/X86Subtarget.cpp
lib/Target/X86/X86Subtarget.h
test/CodeGen/X86/sqrt-fastmath.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5658.14694.patch
Type: text/x-patch
Size: 17617 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141010/5cd5c018/attachment.bin>
More information about the llvm-commits
mailing list