]> granicus.if.org Git - llvm/commit
[DAG Combiner] Fix the native computation of the Newton series for reciprocals
authorEvandro Menezes <e.menezes@samsung.com>
Thu, 10 Nov 2016 23:31:06 +0000 (23:31 +0000)
committerEvandro Menezes <e.menezes@samsung.com>
Thu, 10 Nov 2016 23:31:06 +0000 (23:31 +0000)
commit3f647d62d1ffc114ab52034d992f650aa2c9fec5
treed5daa9c1170d2d0f3ce8945b32467be7b9a30136
parentb0204917258d334a4200e604557a21655a801a29
[DAG Combiner] Fix the native computation of the Newton series for reciprocals

The generic infrastructure to compute the Newton series for reciprocal and
reciprocal square root was conceived to allow a target to compute the series
itself.  However, the original code did not properly consider this condition
if returned by a target.  This patch addresses the issues to allow a target
to compute the series on its own.

Differential revision: https://reviews.llvm.org/D22975

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286523 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetLowering.h
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
lib/Target/AArch64/AArch64ISelLowering.cpp
lib/Target/AArch64/AArch64ISelLowering.h
lib/Target/AMDGPU/AMDGPUISelLowering.cpp
lib/Target/AMDGPU/AMDGPUISelLowering.h
lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/PowerPC/PPCISelLowering.h
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86ISelLowering.h