From 55994078b6bc51ae62bd4117c6c335b94336137b Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Tue, 2 Nov 2004 09:56:12 +0000 Subject: bitmap.h (bitmap_equal_p): Return bool. * bitmap.h (bitmap_equal_p): Return bool. (bitmap_intersect_p, bitmap_intersect_compl_p): Declare. * bitmap.c (bitmap_equal_p): Return bool. Compare directly. (bitmap_intersect_p, bitmap_intersect_compl_p): New. * flow.c (calculate_global_regs_live): Use bitmap_intersect_p and bitmap_intersect_compl_p. * ifcvt (dead_or_predicable): Likewise. From-SVN: r89981 --- gcc/bitmap.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'gcc/bitmap.h') diff --git a/gcc/bitmap.h b/gcc/bitmap.h index 67eb9d2..767fafa 100644 --- a/gcc/bitmap.h +++ b/gcc/bitmap.h @@ -85,8 +85,16 @@ extern void bitmap_clear (bitmap); extern void bitmap_copy (bitmap, bitmap); /* True if two bitmaps are identical. */ -extern int bitmap_equal_p (bitmap, bitmap); +extern bool bitmap_equal_p (bitmap, bitmap); +/* True if the bitmaps intersect (their AND is non-empty). */ +extern bool bitmap_intersect_p (bitmap, bitmap); + +/* True if the complement of the second intersects the first (their + AND_COMPL is non-empty). */ +extern bool bitmap_intersect_compl_p (bitmap, bitmap); + +/* True if MAP is an empty bitmap. */ #define bitmap_empty_p(MAP) (!(MAP)->first) /* Perform an operation on two bitmaps, yielding a third. */ -- cgit v1.1