reg-stack: Change return type of predicate functions from int to bool
commit99566c0c6b8802ba1d0baeebba3581563cf8a09f
authorUros Bizjak <ubizjak@gmail.com>
Fri, 2 Jun 2023 09:55:05 +0000 (2 11:55 +0200)
committerUros Bizjak <ubizjak@gmail.com>
Fri, 2 Jun 2023 14:17:46 +0000 (2 16:17 +0200)
tree9ff5ac97574cdca22456844afb925a2840707057
parente7cc4d703bceb9095316c106eba0d1939c6c8044
reg-stack: Change return type of predicate functions from int to bool

Also change some internal variables to bool and recode handling of
boolean varialbes to not use bitwise or.

gcc/ChangeLog:

* rtl.h (stack_regs_mentioned): Change return type from int to bool.
* reg-stack.cc (struct_block_info_def): Change "done" to bool.
(stack_regs_mentioned_p): Change return type from int to bool
and adjust function body accordingly.
(stack_regs_mentioned): Ditto.
(check_asm_stack_operands): Ditto.  Change "malformed_asm"
variable to bool.
(move_for_stack_reg): Recode handling of control_flow_insn_deleted.
(swap_rtx_condition_1): Change return type from int to bool
and adjust function body accordingly.  Change "r" variable to bool.
(swap_rtx_condition): Change return type from int to bool
and adjust function body accordingly.
(subst_stack_regs_pat): Recode handling of control_flow_insn_deleted.
(subst_stack_regs): Ditto.
(convert_regs_entry): Change return type from int to bool and adjust
function body accordingly.  Change "inserted" variable to bool.
(convert_regs_1): Recode handling of control_flow_insn_deleted.
(convert_regs_2): Recode handling of cfg_altered.
(convert_regs): Ditto.  Change "inserted" variable to bool.
gcc/reg-stack.cc
gcc/rtl.h