diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2022-11-21 11:45:47 +0100 |
---|---|---|
committer | Aldy Hernandez <aldyh@redhat.com> | 2023-04-26 10:28:12 +0200 |
commit | 964b02cb26df1016d036de6720e9d4decf87cc6f (patch) | |
tree | 147f9581ff7522d9e588fcdd65e6bf58e5053ccd /gcc/value-range.cc | |
parent | a38bb14f013e96e7225f904d0e8b701b0b386314 (diff) | |
download | gcc-964b02cb26df1016d036de6720e9d4decf87cc6f.zip gcc-964b02cb26df1016d036de6720e9d4decf87cc6f.tar.gz gcc-964b02cb26df1016d036de6720e9d4decf87cc6f.tar.bz2 |
Remove irange::constant_p.
gcc/ChangeLog:
* value-range-pretty-print.cc (vrange_printer::visit): Remove
constant_p use.
* value-range.cc (irange::constant_p): Remove.
(irange::get_nonzero_bits_from_range): Remove constant_p use.
* value-range.h (class irange): Remove constant_p.
(irange::num_pairs): Remove constant_p use.
Diffstat (limited to 'gcc/value-range.cc')
-rw-r--r-- | gcc/value-range.cc | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/gcc/value-range.cc b/gcc/value-range.cc index ebadea8..58ae2c1 100644 --- a/gcc/value-range.cc +++ b/gcc/value-range.cc @@ -1351,16 +1351,6 @@ irange::operator== (const irange &other) const return nz1 == nz2; } -/* Return TRUE if this is a constant range. */ - -bool -irange::constant_p () const -{ - return (m_num_ranges > 0 - && TREE_CODE (min ()) == INTEGER_CST - && TREE_CODE (max ()) == INTEGER_CST); -} - /* If range is a singleton, place it in RESULT and return TRUE. Note: A singleton can be any gimple invariant, not just constants. So, [&x, &x] counts as a singleton. */ @@ -2835,10 +2825,6 @@ irange::invert () wide_int irange::get_nonzero_bits_from_range () const { - // For legacy symbolics. - if (!constant_p ()) - return wi::shwi (-1, TYPE_PRECISION (type ())); - wide_int min = lower_bound (); wide_int max = upper_bound (); wide_int xorv = min ^ max; |