]> git.ipfire.org Git - thirdparty/gcc.git/commit
cprop: Change return type of predicate functions from int to bool
authorUros Bizjak <ubizjak@gmail.com>
Sat, 8 Jul 2023 13:00:19 +0000 (15:00 +0200)
committerUros Bizjak <ubizjak@gmail.com>
Sat, 8 Jul 2023 13:01:00 +0000 (15:01 +0200)
commit38b7125be9ce76402cf6ea16cdbc6055358a6e54
treebf274d4ba06d91178a7514ad7b977905b394824b
parent0926f205075583c0655c0884fca22a3d02b3660f
cprop: Change return type of predicate functions from int to bool

Also change some internal variables from int to bool.

gcc/ChangeLog:

* cprop.cc (reg_available_p): Change return type from int to bool.
(reg_not_set_p): Ditto.
(try_replace_reg): Ditto.  Change "success" variable to bool.
(cprop_jump): Change return type from int to void
and adjust function body accordingly.
(constprop_register): Ditto.
(cprop_insn): Ditto.  Change "changed" variable to bool.
(local_cprop_pass): Change return type from int to void
and adjust function body accordingly.
(bypass_block): Ditto.  Change "change", "may_be_loop_header"
and "removed_p" variables to bool.
(bypass_conditional_jumps): Change return type from int to void
and adjust function body accordingly.  Change "changed"
variable to bool.
(one_cprop_pass): Ditto.
gcc/cprop.cc