Skip to content

Commit 918e5ac

Browse files
committed
Rewording
1 parent a25d5dc commit 918e5ac

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

llvm/docs/LangRef.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3914,10 +3914,11 @@ following flags to enable otherwise unsafe floating-point transformations.
39143914
No Signed Zeros - Allow optimizations to treat the sign of a zero
39153915
argument or zero result as insignificant. This does not imply that -0.0
39163916
is poison and/or guaranteed to not exist in the operation.
3917-
Don't require +0.0>-0.0 for min/max operations - Allow optimizations of the
3918-
min/max operation not to treat +0.0>-0.0. Note the result should be either of
3919-
the operands. (max|min)(-0.0, -0.0) should never return +0.0, and vice versa.
3920-
Note: floating compare operations always imply -0.0 == +0.0.
3917+
For fcmp, this has no effect. For min/max intrinsics, this allows
3918+
returning either +0 or -0 if both +0 and -0 are passed.
3919+
For calls to anything other than a min/max intrinsic,
3920+
arithmetic instructions, select, and phi, if the result is zero,
3921+
the returned value can be a zero of either sign.
39213922

39223923
Note: For :ref:`phi <i_phi>`, :ref:`select <i_select>`, and :ref:`call <i_call>`
39233924
instructions, the following return types are considered to be floating-point

0 commit comments

Comments
 (0)