cselib+expr+bitmap: Change return type of predicate functions from int to bool
commitc41332abe7da981abdc23440e7e859b92ba065ec
authorUros Bizjak <ubizjak@gmail.com>
Thu, 29 Jun 2023 15:29:03 +0000 (29 17:29 +0200)
committerUros Bizjak <ubizjak@gmail.com>
Thu, 29 Jun 2023 15:29:47 +0000 (29 17:29 +0200)
tree506f6ba2316c1c57f609d11a323f74608e9deaf3
parent5dfdf0ae4dca44a4f572c346d322fd6244598190
cselib+expr+bitmap: Change return type of predicate functions from int to bool

gcc/ChangeLog:

* cselib.h (rtx_equal_for_cselib_1):
Change return type from int to bool.
(references_value_p): Ditto.
(rtx_equal_for_cselib_p): Ditto.
* expr.h (can_store_by_pieces): Ditto.
(try_casesi): Ditto.
(try_tablejump): Ditto.
(safe_from_p): Ditto.
* sbitmap.h (bitmap_equal_p): Ditto.
* cselib.cc (references_value_p): Change return type
from int to void and adjust function body accordingly.
(rtx_equal_for_cselib_1): Ditto.
* expr.cc (is_aligning_offset): Ditto.
(can_store_by_pieces): Ditto.
(mostly_zeros_p): Ditto.
(all_zeros_p): Ditto.
(safe_from_p): Ditto.
(is_aligning_offset): Ditto.
(try_casesi): Ditto.
(try_tablejump): Ditto.
(store_constructor): Change "need_to_clear" and
"const_bounds_p" variables to bool.
* sbitmap.cc (bitmap_equal_p):  Change return type from int to bool.
gcc/cselib.cc
gcc/cselib.h
gcc/expr.cc
gcc/expr.h
gcc/sbitmap.cc
gcc/sbitmap.h