aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-array-bounds.h
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2023-03-02 14:47:41 +0100
committerAldy Hernandez <aldyh@redhat.com>2023-04-26 10:28:12 +0200
commite6910b622ad6dc2995155b24b22aaf2acc22c927 (patch)
treed1bf58b5f66a3be60ad6bc6764be858f56d3f6a3 /gcc/gimple-array-bounds.h
parent3d8c2d3aefa85d1e5f15804dd6345a88d139f9fb (diff)
downloadgcc-e6910b622ad6dc2995155b24b22aaf2acc22c927.zip
gcc-e6910b622ad6dc2995155b24b22aaf2acc22c927.tar.gz
gcc-e6910b622ad6dc2995155b24b22aaf2acc22c927.tar.bz2
Remove range_query::get_value_range.
gcc/ChangeLog: * gimple-array-bounds.cc (array_bounds_checker::get_value_range): Add irange argument. (check_out_of_bounds_and_warn): Remove check for vr. (array_bounds_checker::check_array_ref): Remove pointer qualifier for vr and adjust accordingly. * gimple-array-bounds.h (get_value_range): Add irange argument. * value-query.cc (class equiv_allocator): Delete. (range_query::get_value_range): Delete. (range_query::range_query): Remove allocator access. (range_query::~range_query): Same. * value-query.h (get_value_range): Delete. * vr-values.cc (simplify_using_ranges::op_with_boolean_value_range_p): Remove call to get_value_range. (check_for_binary_op_overflow): Same. (simplify_using_ranges::legacy_fold_cond_overflow): Same. (simplify_using_ranges::simplify_abs_using_ranges): Same. (simplify_using_ranges::simplify_cond_using_ranges_1): Same. (simplify_using_ranges::simplify_casted_cond): Same. (simplify_using_ranges::simplify_switch_using_ranges): Same. (simplify_using_ranges::two_valued_val_range_p): Same.
Diffstat (limited to 'gcc/gimple-array-bounds.h')
-rw-r--r--gcc/gimple-array-bounds.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimple-array-bounds.h b/gcc/gimple-array-bounds.h
index 13e5f29..5a0d310 100644
--- a/gcc/gimple-array-bounds.h
+++ b/gcc/gimple-array-bounds.h
@@ -35,7 +35,7 @@ private:
bool check_array_ref (location_t, tree, gimple *, bool ignore_off_by_one);
bool check_mem_ref (location_t, tree, bool ignore_off_by_one);
void check_addr_expr (location_t, tree, gimple *);
- const value_range *get_value_range (const_tree op, gimple *);
+ void get_value_range (irange &r, const_tree op, gimple *);
/* Current function. */
struct function *fun;