diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2022-10-20 08:55:36 +0200 |
---|---|---|
committer | Aldy Hernandez <aldyh@redhat.com> | 2022-10-20 16:11:22 +0200 |
commit | f4fda3eec408e1eb12cc966f55f0de396be71597 (patch) | |
tree | 0f8e7c96459b453de04a3a7b740e580229bfcfdd /gcc/range-op-float.cc | |
parent | be43d5d3051589ee00f6685103539dced767c47d (diff) | |
download | gcc-f4fda3eec408e1eb12cc966f55f0de396be71597.zip gcc-f4fda3eec408e1eb12cc966f55f0de396be71597.tar.gz gcc-f4fda3eec408e1eb12cc966f55f0de396be71597.tar.bz2 |
Do not set NAN flags for VARYING ranges when !HONOR_NANS.
Since NANs can't appear in ranges for !HONOR_NANS, there's no reason
to set them in a VARYING range.
gcc/ChangeLog:
* value-range.h (frange::set_varying): Do not set NAN flags for
!HONOR_NANS.
* value-range.cc (frange::normalize_kind): Adjust for no NAN when
!HONOR_NANS.
(frange::verify_range): Same.
* range-op-float.cc (maybe_isnan): Remove flag_finite_math_only check.
Diffstat (limited to 'gcc/range-op-float.cc')
-rw-r--r-- | gcc/range-op-float.cc | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/gcc/range-op-float.cc b/gcc/range-op-float.cc index 2a4a99b..a9e74c8 100644 --- a/gcc/range-op-float.cc +++ b/gcc/range-op-float.cc @@ -171,9 +171,6 @@ range_operator_float::op1_op2_relation (const frange &lhs ATTRIBUTE_UNUSED) cons static inline bool maybe_isnan (const frange &op1, const frange &op2) { - if (flag_finite_math_only) - return false; - return op1.maybe_isnan () || op2.maybe_isnan (); } |