This function is no longer being called. The behavior in it is handled
by the API (value_range_base::singleton_p).
Committed as obvious.
commit 9d22f224ec66efb0abf1394bff7e3d0080498417
Author: Aldy Hernandez <al...@redhat.com>
Date: Mon Nov 4 12:46:00 2019 +0100
Remove unused range_int_cst_singleton_p.
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 407470f0ed6..548f2fca970 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2019-11-04 Aldy Hernandez <al...@redhat.com>
+
+ * tree-vrp.c (range_int_cst_singleton_p): Remove.
+ * tree-vrp.h (range_int_cst_singleton_p): Remove.
+
2019-11-04 Aldy Hernandez <al...@redhat.com>
* tree-vrp.c (value_range_base::normalize_addresses): Handle
diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c
index c0c1e87a259..070db903147 100644
--- a/gcc/tree-vrp.c
+++ b/gcc/tree-vrp.c
@@ -945,15 +945,6 @@ range_int_cst_p (const value_range_base *vr)
return (vr->kind () == VR_RANGE && range_has_numeric_bounds_p (vr));
}
-/* Return true if VR is a INTEGER_CST singleton. */
-
-bool
-range_int_cst_singleton_p (const value_range_base *vr)
-{
- return (range_int_cst_p (vr)
- && tree_int_cst_equal (vr->min (), vr->max ()));
-}
-
/* 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. */
diff --git a/gcc/tree-vrp.h b/gcc/tree-vrp.h
index 4bfdfeb8f79..1fde88fe0fe 100644
--- a/gcc/tree-vrp.h
+++ b/gcc/tree-vrp.h
@@ -282,7 +282,6 @@ extern bool infer_value_range (gimple *, tree, tree_code *, tree *);
extern bool vrp_bitmap_equal_p (const_bitmap, const_bitmap);
extern bool range_int_cst_p (const value_range_base *);
-extern bool range_int_cst_singleton_p (const value_range_base *);
extern int compare_values (tree, tree);
extern int compare_values_warnv (tree, tree, bool *);