aboutsummaryrefslogtreecommitdiff
path: root/gcc/value-range.h
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2022-03-14 09:57:48 +0100
committerAldy Hernandez <aldyh@redhat.com>2022-04-29 10:44:18 +0200
commitc13fd1b8fd8eef009370a629bd2ca2bbdb2f828d (patch)
treea20eeb9d5e8c053a7edcd8e776b62344285a452d /gcc/value-range.h
parent6ccc4356e7c5b4ca69d2029898a6439bb735cbc5 (diff)
downloadgcc-c13fd1b8fd8eef009370a629bd2ca2bbdb2f828d.zip
gcc-c13fd1b8fd8eef009370a629bd2ca2bbdb2f828d.tar.gz
gcc-c13fd1b8fd8eef009370a629bd2ca2bbdb2f828d.tar.bz2
Remove various deprecated methods in class irange.
This patch cleans up some irange methods in preparation for other cleanups later in the cycle. First, we prefer the reference overloads for union and intersect as the pointer versions have been deprecated for a couple releases. Also, I've renamed the legacy union/intersect whose only function was to provide additional verbosity for VRP into legacy_verbose_{union,intersect}. This is a temporary rename to serve as a visual reminder of which of the methods are bound for the chopping block when the legacy code gets removed later this cycle. Tested on x86-64 Linux. gcc/ChangeLog: * gimple-fold.cc (size_must_be_zero_p): Use reference instead of pointer * gimple-ssa-evrp-analyze.cc (evrp_range_analyzer::record_ranges_from_incoming_edge): Rename intersect to legacy_verbose_intersect. * ipa-cp.cc (ipcp_vr_lattice::meet_with_1): Use reference instead of pointer. * tree-ssa-dom.cc (dom_jt_simplifier::simplify): Use value_range instead of value_range_equiv. * tree-vrp.cc (extract_range_from_plus_minus_expr): Use reference instead of pointer. (find_case_label_range): Same. * value-range-equiv.cc (value_range_equiv::intersect): Rename to... (value_range_equiv::legacy_verbose_intersect): ...this. (value_range_equiv::union_): Rename to... (value_range_equiv::legacy_verbose_union_): ...this. * value-range-equiv.h (class value_range_equiv): Rename union and intersect to legacy_verbose_{intersect,union}. * value-range.cc (irange::union_): Rename to... (irange::legacy_verbose_union_): ...this. (irange::intersect): Rename to... (irange::legacy_verbose_intersect): ...this. * value-range.h (irange::union_): Rename union_ to legacy_verbose_union. (irange::intersect): Rename intersect to legacy_verbose_intersect. * vr-values.cc (vr_values::update_value_range): Same. (vr_values::extract_range_for_var_from_comparison_expr): Same. (vr_values::extract_range_from_cond_expr): Rename union_ to legacy_verbose_union. (vr_values::extract_range_from_phi_node): Same.
Diffstat (limited to 'gcc/value-range.h')
-rw-r--r--gcc/value-range.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/value-range.h b/gcc/value-range.h
index b64e024..90a395f 100644
--- a/gcc/value-range.h
+++ b/gcc/value-range.h
@@ -96,8 +96,8 @@ public:
bool may_contain_p (tree) const; // DEPRECATED
void set (tree); // DEPRECATED
bool equal_p (const irange &) const; // DEPRECATED
- void union_ (const class irange *); // DEPRECATED
- void intersect (const irange *); // DEPRECATED
+ void legacy_verbose_union_ (const class irange *); // DEPRECATED
+ void legacy_verbose_intersect (const irange *); // DEPRECATED
protected:
irange (tree *, unsigned);
@@ -549,7 +549,7 @@ irange::union_ (const irange &r)
{
dump_flags_t m_flags = dump_flags;
dump_flags &= ~TDF_DETAILS;
- irange::union_ (&r);
+ irange::legacy_verbose_union_ (&r);
dump_flags = m_flags;
}
@@ -558,7 +558,7 @@ irange::intersect (const irange &r)
{
dump_flags_t m_flags = dump_flags;
dump_flags &= ~TDF_DETAILS;
- irange::intersect (&r);
+ irange::legacy_verbose_intersect (&r);
dump_flags = m_flags;
}