diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-11-09 14:01:33 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-11-09 14:01:33 +0000 |
commit | 6bd6739ac54ddf1529d03fe8ae6f10a862a0fe94 (patch) | |
tree | d8b32d4da8ab288343c7d289a01fb22089dced27 /gcc/bitmap.h | |
parent | 91bd874e0fada88f33f2618061e20804adbd3239 (diff) | |
download | gcc-6bd6739ac54ddf1529d03fe8ae6f10a862a0fe94.tar.gz |
2007-11-09 Richard Guenther <rguenther@suse.de>
* bitmap.h (bitmap_single_bit_set_p): Declare.
* bitmap.c (bitmap_single_bit_set_p): New function.
* tree-ssa-alias.c (add_may_alias_for_new_tag): Use it.
(maybe_create_global_var): Use bitmap_empty_p.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130045 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/bitmap.h')
-rw-r--r-- | gcc/bitmap.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/bitmap.h b/gcc/bitmap.h index 66fed855afe..0b6ed731922 100644 --- a/gcc/bitmap.h +++ b/gcc/bitmap.h @@ -107,6 +107,9 @@ extern bool bitmap_intersect_compl_p (const_bitmap, const_bitmap); /* True if MAP is an empty bitmap. */ #define bitmap_empty_p(MAP) (!(MAP)->first) +/* True if the bitmap has only a single bit set. */ +extern bool bitmap_single_bit_set_p (const_bitmap); + /* Count the number of bits set in the bitmap. */ extern unsigned long bitmap_count_bits (const_bitmap); |