]> git.ipfire.org Git - thirdparty/gcc.git/commit
cse: Change return type of predicate functions from int to bool
authorUros Bizjak <ubizjak@gmail.com>
Thu, 1 Jun 2023 12:43:03 +0000 (14:43 +0200)
committerUros Bizjak <ubizjak@gmail.com>
Thu, 1 Jun 2023 14:21:57 +0000 (16:21 +0200)
commitdec7aaabe9651cb075ace60721b6e36864cc5140
tree3d8c5946f3b329106493241fb930372ac409694e
parentfe3ce0861081dd17e581c32b299b9c743d000470
cse: Change return type of predicate functions from int to bool

Also change some function arguments to bool and remove one instance
of always zero function argument.

gcc/ChangeLog:

* rtl.h (exp_equiv_p): Change return type from int to bool.
* cse.cc (mention_regs): Change return type from int to bool
and adjust function body accordingly.
(exp_equiv_p): Ditto.
(insert_regs): Ditto. Change "modified" function argument to bool
and update usage accordingly.
(record_jump_cond): Remove always zero "reversed_nonequality"
function argument and update usage accordingly.
(fold_rtx): Change "changed" variable to bool.
(record_jump_equiv): Remove unneeded "reversed_nonequality" variable.
(is_dead_reg): Change return type from int to bool.
gcc/cse.cc
gcc/rtl.h