aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vrp.c
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2019-11-05 04:14:40 +0000
committerAldy Hernandez <aldyh@gcc.gnu.org>2019-11-05 04:14:40 +0000
commit2b13f5a622305877357be223d2a4a11c5ad1d499 (patch)
tree64973bf5f7ae62126de01fecee7364636ccc4657 /gcc/tree-vrp.c
parente65deaff25930557e7de3b2663a7c466a2df04fe (diff)
downloadgcc-2b13f5a622305877357be223d2a4a11c5ad1d499.zip
gcc-2b13f5a622305877357be223d2a4a11c5ad1d499.tar.gz
gcc-2b13f5a622305877357be223d2a4a11c5ad1d499.tar.bz2
Move vrp_bitmap_equal_p above its only use and make it static.
From-SVN: r277813
Diffstat (limited to 'gcc/tree-vrp.c')
-rw-r--r--gcc/tree-vrp.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c
index a6d44e9..e926670 100644
--- a/gcc/tree-vrp.c
+++ b/gcc/tree-vrp.c
@@ -254,6 +254,18 @@ value_range_base::equal_p (const value_range_base &other) const
&& vrp_operand_equal_p (m_max, other.m_max));
}
+/* Return true if the bitmaps B1 and B2 are equal. */
+
+static bool
+vrp_bitmap_equal_p (const_bitmap b1, const_bitmap b2)
+{
+ return (b1 == b2
+ || ((!b1 || bitmap_empty_p (b1))
+ && (!b2 || bitmap_empty_p (b2)))
+ || (b1 && b2
+ && bitmap_equal_p (b1, b2)));
+}
+
/* Returns TRUE if THIS == OTHER. Ignores the equivalence bitmap if
IGNORE_EQUIVS is TRUE. */
@@ -910,18 +922,6 @@ vrp_operand_equal_p (const_tree val1, const_tree val2)
return true;
}
-/* Return true, if the bitmaps B1 and B2 are equal. */
-
-bool
-vrp_bitmap_equal_p (const_bitmap b1, const_bitmap b2)
-{
- return (b1 == b2
- || ((!b1 || bitmap_empty_p (b1))
- && (!b2 || bitmap_empty_p (b2)))
- || (b1 && b2
- && bitmap_equal_p (b1, b2)));
-}
-
static bool
range_has_numeric_bounds_p (const value_range_base *vr)
{