OSDN Git Service

easing the constraint for isNegatibleForFree and GetNegatedExpression
authorMichael Berg <michael_c_berg@apple.com>
Thu, 14 Jun 2018 20:54:13 +0000 (20:54 +0000)
committerMichael Berg <michael_c_berg@apple.com>
Thu, 14 Jun 2018 20:54:13 +0000 (20:54 +0000)
commit11f1b27ce763df04fdb0d8c9ccd6ae32321c766c
tree3e0e67d309691bb4dec42fe8727ab986b3a88cc4
parent74dff3bf019c75f284c71bdc2d3d9f716aed9e71
easing the constraint for isNegatibleForFree and GetNegatedExpression

Summary:
Here we relax the old constraint which utilized unsafe with the TargetOption flag HonorSignDependentRoundingFPMathOption, with the assertion that unsafe is no longer needed or never was required for correctness on FDIV/FMUL.

Reviewers: spatel, hfinkel, wristow, arsenm, javed.absar

Reviewed By: spatel

Subscribers: efriedma, wdng, tpr

Differential Revision: https://reviews.llvm.org/D48057

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@334769 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/ARM/fnmul.ll