From dec7aaabe9651cb075ace60721b6e36864cc5140 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Thu, 1 Jun 2023 14:43:03 +0200 Subject: 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/rtl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/rtl.h') diff --git a/gcc/rtl.h b/gcc/rtl.h index 6eaa52d..caef74a 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -4141,7 +4141,7 @@ extern int rtx_to_tree_code (enum rtx_code); /* In cse.cc */ extern int delete_trivially_dead_insns (rtx_insn *, int); -extern int exp_equiv_p (const_rtx, const_rtx, int, bool); +extern bool exp_equiv_p (const_rtx, const_rtx, int, bool); extern unsigned hash_rtx (const_rtx x, machine_mode, int *, int *, bool); /* In dse.cc */ -- cgit v1.1