Make sbitmap bitmap_set_bit and bitmap_clear_bit return changed state
authorRichard Biener <rguenther@suse.de>
Wed, 3 Nov 2021 08:57:21 +0000 (09:57 +0100)
committerRichard Biener <rguenther@suse.de>
Wed, 3 Nov 2021 10:14:22 +0000 (11:14 +0100)
commit73658e70d9edfab77d7a50039b3ab7d2be3a41a0
tree26611a8c718cb2a5f85dad791ec899723e4a294f
parentc081d0a3b0291297f04a05c833d2ffa8de3a7a1a
Make sbitmap bitmap_set_bit and bitmap_clear_bit return changed state

The following adjusts the sbitmap bitmap_set_bit and bitmap_clear_bit
APIs to match that of bitmap by returning a bool indicating whether
the bitmap was changed.  I've also changed bitmap_bit_p to return
a bool rather than an int and made use of the sbitmap bitmap_set_bit
API change in one place.

2021-11-03  Richard Biener  <rguenther@suse.de>

* bitmap.h (bitmap_bit_p): Change the return type to bool.
* bitmap.c (bitmap_bit_p): Likewise.
* sbitmap.h (bitmap_bit_p): Likewise.
(bitmap_set_bit): Return whether the bit changed.
(bitmap_clear_bit): Likewise.
* tree-ssa.c (verify_vssa): Make use of the changed state
from bitmap_set_bit.
gcc/bitmap.c
gcc/bitmap.h
gcc/sbitmap.h
gcc/tree-ssa.c