aboutsummaryrefslogtreecommitdiff
path: root/gcc/value-range.h
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2022-11-21 11:19:34 +0100
committerAldy Hernandez <aldyh@redhat.com>2023-04-26 10:28:12 +0200
commit983ad30d42c810e4de60ae5ba468334ef8aa14d2 (patch)
tree1e96e40b1d64183b80d1f3d0ade4ca96357ecc46 /gcc/value-range.h
parentbfd9415761dabcfa3ddef2c78c169ac82702cd00 (diff)
downloadgcc-983ad30d42c810e4de60ae5ba468334ef8aa14d2.zip
gcc-983ad30d42c810e4de60ae5ba468334ef8aa14d2.tar.gz
gcc-983ad30d42c810e4de60ae5ba468334ef8aa14d2.tar.bz2
Remove irange::may_contain_p.
The deprecated irange::may_contain_p method differed from contains_p in that it could handle symbolics, which no longer exist in VRP. gcc/ChangeLog: * value-range.cc (irange::may_contain_p): Remove. * value-range.h (range_includes_zero_p): Rewrite may_contain_p usage with contains_p. * vr-values.cc (compare_range_with_value): Same.
Diffstat (limited to 'gcc/value-range.h')
-rw-r--r--gcc/value-range.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/value-range.h b/gcc/value-range.h
index d2a2759..929dc55 100644
--- a/gcc/value-range.h
+++ b/gcc/value-range.h
@@ -173,7 +173,6 @@ public:
bool constant_p () const; // DEPRECATED
void normalize_symbolics (); // DEPRECATED
void normalize_addresses (); // DEPRECATED
- bool may_contain_p (tree) const; // DEPRECATED
bool legacy_verbose_union_ (const class irange *); // DEPRECATED
bool legacy_verbose_intersect (const irange *); // DEPRECATED
@@ -828,7 +827,8 @@ range_includes_zero_p (const irange *vr)
if (vr->varying_p ())
return true;
- return vr->may_contain_p (build_zero_cst (vr->type ()));
+ tree zero = build_zero_cst (vr->type ());
+ return vr->contains_p (zero);
}
extern void gt_ggc_mx (vrange *);