[NFC] [DAGCombine] Correct the result for sqrt even the iteration is zero
authorQingShan Zhang <qshanz@cn.ibm.com>
Mon, 25 Jan 2021 04:00:32 +0000 (04:00 +0000)
committerQingShan Zhang <qshanz@cn.ibm.com>
Mon, 25 Jan 2021 04:02:44 +0000 (04:02 +0000)
commitffc3e800c65ee58166255ff897f8b7e6d850ddda
treed1d6088c3c4ba5fc177c4d76d441e579d6ec5ec2
parent89a5147e5a0c2e886cdf7ffa34799c069d825940
[NFC] [DAGCombine] Correct the result for sqrt even the iteration is zero

For now, we correct the result for sqrt if iteration > 0. This doesn't make
sense as they are not strict relative.

Reviewed By: dmgreen, spatel, RKSimon

Differential Revision: https://reviews.llvm.org/D94480
llvm/include/llvm/CodeGen/TargetLowering.h
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.h
llvm/lib/Target/PowerPC/PPCISelLowering.cpp