aboutsummaryrefslogtreecommitdiff
path: root/gcc/value-range.h
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2023-03-02 23:37:20 +0100
committerAldy Hernandez <aldyh@redhat.com>2023-05-01 08:33:16 +0200
commit178abecaa9ca96acee6e155261d4dc50dd98fab4 (patch)
treedff34f1b8545cea5b5113879ce25a80945367afa /gcc/value-range.h
parentc92b8be9b52b7e0de5ad67bc268dad1498181908 (diff)
downloadgcc-178abecaa9ca96acee6e155261d4dc50dd98fab4.zip
gcc-178abecaa9ca96acee6e155261d4dc50dd98fab4.tar.gz
gcc-178abecaa9ca96acee6e155261d4dc50dd98fab4.tar.bz2
Cleanup irange::set.
Now that anti-ranges are no more and iranges contain wide_ints instead of trees, various cleanups are possible. This is one of a handful of patches improving the performance of irange::set() which is not on a hot path, but quite sensitive because it is so pervasive. gcc/ChangeLog: * gimple-range-op.cc (cfn_ffs::fold_range): Use the correct precision. * gimple-ssa-warn-alloca.cc (alloca_call_type): Use <2> for invalid_range, as it is an inverse range. * tree-vrp.cc (find_case_label_range): Avoid trees. * value-range.cc (irange::irange_set): Delete. (irange::irange_set_1bit_anti_range): Delete. (irange::irange_set_anti_range): Delete. (irange::set): Cleanup. * value-range.h (class irange): Remove irange_set, irange_set_anti_range, irange_set_1bit_anti_range. (irange::set_undefined): Remove set to m_type.
Diffstat (limited to 'gcc/value-range.h')
-rw-r--r--gcc/value-range.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/gcc/value-range.h b/gcc/value-range.h
index 9f82b00..9a834c9 100644
--- a/gcc/value-range.h
+++ b/gcc/value-range.h
@@ -172,8 +172,6 @@ protected:
irange (wide_int *, unsigned);
// In-place operators.
- void irange_set (tree type, const wide_int &, const wide_int &);
- void irange_set_anti_range (tree type, const wide_int &, const wide_int &);
bool irange_contains_p (const irange &) const;
bool irange_single_pair_union (const irange &r);
@@ -186,8 +184,6 @@ private:
friend void gt_pch_nx (irange *);
friend void gt_pch_nx (irange *, gt_pointer_operator, void *);
- void irange_set_1bit_anti_range (tree type,
- const wide_int &, const wide_int &);
bool varying_compatible_p () const;
bool intersect_nonzero_bits (const irange &r);
bool union_nonzero_bits (const irange &r);
@@ -831,7 +827,6 @@ inline void
irange::set_undefined ()
{
m_kind = VR_UNDEFINED;
- m_type = NULL;
m_num_ranges = 0;
}