aboutsummaryrefslogtreecommitdiff
path: root/gcc/value-range.h
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2022-03-07 14:48:58 +0100
committerAldy Hernandez <aldyh@redhat.com>2022-04-29 10:41:59 +0200
commit71f2928e282eb7863de8426e41c38a90c436d41d (patch)
treedb2aca75b24be42a435b32cf72bebead8e8443a4 /gcc/value-range.h
parent7259481f0ece6283a6e2943448e8d28ffffc40f9 (diff)
downloadgcc-71f2928e282eb7863de8426e41c38a90c436d41d.zip
gcc-71f2928e282eb7863de8426e41c38a90c436d41d.tar.gz
gcc-71f2928e282eb7863de8426e41c38a90c436d41d.tar.bz2
Make irange::intersect(wide_int, wide_int) private.
This method should have been private, and somehow seeped into the API. Tested and benchmarked on x86-64 Linux. gcc/ChangeLog: * gimple-range-cache.h (non_null_ref::adjust_range): Do not use irange::intersect (wide_int, wide_int). * gimple-range-fold.cc (adjust_pointer_diff_expr): Same. (adjust_imagpart_expr): Same. * value-range.h (irange::intersect (wide_int, wide_int)): Make private.
Diffstat (limited to 'gcc/value-range.h')
-rw-r--r--gcc/value-range.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/value-range.h b/gcc/value-range.h
index d4cba22..fe7795b 100644
--- a/gcc/value-range.h
+++ b/gcc/value-range.h
@@ -73,7 +73,6 @@ public:
// In-place operators.
void union_ (const irange &);
void intersect (const irange &);
- void intersect (const wide_int& lb, const wide_int& ub);
void invert ();
// Operator overloads.
@@ -135,6 +134,7 @@ private:
void irange_set_1bit_anti_range (tree, tree);
bool varying_compatible_p () const;
+ void intersect (const wide_int& lb, const wide_int& ub);
unsigned char m_num_ranges;
unsigned char m_max_ranges;
ENUM_BITFIELD(value_range_kind) m_kind : 8;