Use frange::set_nan() from the generic frange::set().
authorAldy Hernandez <aldyh@redhat.com>
Wed, 14 Sep 2022 06:29:54 +0000 (08:29 +0200)
committerAldy Hernandez <aldyh@redhat.com>
Wed, 14 Sep 2022 15:06:48 +0000 (17:06 +0200)
commit4a311a6160b3def190e64ca4a05a03fbcd163598
tree34432d6b96408992c4598edeecdf9fe8d676628e
parent9c4c4186eb7ca0a62fc590edcbb3f8fc9a081e64
Use frange::set_nan() from the generic frange::set().

This patch cleans up the frange::set() code by passing all things NAN
to frange::set_nan().

No functional changes.

Regstrapped on x86-64 Linux, plus I ran selftests for
-ffinite-math-only.

gcc/ChangeLog:

* value-range.cc (frange::set): Use set_nan.
* value-range.h (frange::set_nan): Inline code originally in
set().
gcc/value-range.cc
gcc/value-range.h