diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2022-12-21 13:06:23 +0100 |
---|---|---|
committer | Aldy Hernandez <aldyh@redhat.com> | 2023-04-26 13:49:42 +0200 |
commit | ebef388ec3448896ca59c2e6775cdf84bf13c54a (patch) | |
tree | a1c1d2349f5aa579f4d2fb88e83544f2878fe985 /gcc/tree-vrp.cc | |
parent | fb5607ae6ad468fe1183b7a3b392d445010ada41 (diff) | |
download | gcc-ebef388ec3448896ca59c2e6775cdf84bf13c54a.zip gcc-ebef388ec3448896ca59c2e6775cdf84bf13c54a.tar.gz gcc-ebef388ec3448896ca59c2e6775cdf84bf13c54a.tar.bz2 |
Remove range_int_cst_p.
gcc/ChangeLog:
* tree-data-ref.cc (compute_distributive_range): Replace uses of
range_int_cst_p with irange API.
* tree-ssa-strlen.cc (get_range_strlen_dynamic): Same.
* tree-vrp.h (range_int_cst_p): Delete.
* vr-values.cc (check_for_binary_op_overflow): Replace usees of
range_int_cst_p with irange API.
(vr_set_zero_nonzero_bits): Same.
(range_fits_type_p): Same.
(simplify_using_ranges::simplify_casted_cond): Same.
* tree-vrp.cc (range_int_cst_p): Remove.
Diffstat (limited to 'gcc/tree-vrp.cc')
-rw-r--r-- | gcc/tree-vrp.cc | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/gcc/tree-vrp.cc b/gcc/tree-vrp.cc index 2712608..6c6e038 100644 --- a/gcc/tree-vrp.cc +++ b/gcc/tree-vrp.cc @@ -312,15 +312,6 @@ intersect_range_with_nonzero_bits (enum value_range_kind vr_type, return vr_type; } -/* Return true if max and min of VR are INTEGER_CST. It's not necessary - a singleton. */ - -bool -range_int_cst_p (const value_range *vr) -{ - return (vr->kind () == VR_RANGE && range_has_numeric_bounds_p (vr)); -} - /* Return the single symbol (an SSA_NAME) contained in T if any, or NULL_TREE otherwise. We only handle additive operations and set NEG to true if the symbol is negated and INV to the invariant part, if any. */ |