aboutsummaryrefslogtreecommitdiff
path: root/gcc/value-range.h
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2022-07-03 18:22:11 +0200
committerAldy Hernandez <aldyh@redhat.com>2022-07-04 07:58:47 +0200
commitbbe836bc7c557b3f4119e03d24cb61f23906cba9 (patch)
treeed5536607b0f5a76297de799c4a46d06fe10a464 /gcc/value-range.h
parent3731dd0bea8994c3d7b5a4879f89f3e7a0eb2cf4 (diff)
downloadgcc-bbe836bc7c557b3f4119e03d24cb61f23906cba9.zip
gcc-bbe836bc7c557b3f4119e03d24cb61f23906cba9.tar.gz
gcc-bbe836bc7c557b3f4119e03d24cb61f23906cba9.tar.bz2
Remove some deprecated irange methods.
Tested on x86-64 Linux. gcc/ChangeLog: * ipa-cp.cc (ipcp_vr_lattice::meet_with_1): Use operator!=. * ipa-prop.cc (struct ipa_vr_ggc_hash_traits): Same. * tree-ssa-loop-unswitch.cc (struct unswitch_predicate): Use set with two arguments. (find_unswitching_predicates_for_bb): Same. * tree-vrp.cc (range_fold_unary_symbolics_p): Same. * value-range-equiv.cc (value_range_equiv::equal_p): Use operator==. * value-range.cc (irange::equal_p): Rename to... (irange::operator==): ...this. * value-range.h (irange::set): Remove. (irange::operator==): Remove. (irange::set_zero): Use set with two arguments. * vr-values.cc (vr_values::extract_range_from_binary_expr): Same. (vr_values::extract_range_from_unary_expr): Same. (check_for_binary_op_overflow): Same. (bounds_of_var_in_loop): Same.
Diffstat (limited to 'gcc/value-range.h')
-rw-r--r--gcc/value-range.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/gcc/value-range.h b/gcc/value-range.h
index 8ee7793..fd67031 100644
--- a/gcc/value-range.h
+++ b/gcc/value-range.h
@@ -157,8 +157,6 @@ public:
void normalize_symbolics (); // DEPRECATED
void normalize_addresses (); // DEPRECATED
bool may_contain_p (tree) const; // DEPRECATED
- void set (tree); // DEPRECATED
- bool equal_p (const irange &) const; // DEPRECATED
bool legacy_verbose_union_ (const class irange *); // DEPRECATED
bool legacy_verbose_intersect (const irange *); // DEPRECATED
@@ -720,12 +718,6 @@ int_range<N>::operator= (const int_range &src)
}
inline void
-irange::set (tree val)
-{
- set (val, val);
-}
-
-inline void
irange::set_undefined ()
{
m_kind = VR_UNDEFINED;
@@ -765,12 +757,6 @@ irange::set_varying (tree type)
m_base[0] = m_base[1] = error_mark_node;
}
-inline bool
-irange::operator== (const irange &r) const
-{
- return equal_p (r);
-}
-
// Return the lower bound of a sub-range. PAIR is the sub-range in
// question.
@@ -846,7 +832,7 @@ irange::set_zero (tree type)
{
tree z = build_int_cst (type, 0);
if (legacy_mode_p ())
- set (z);
+ set (z, z);
else
irange_set (z, z);
}