aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.h
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2023-06-01 14:43:03 +0200
committerUros Bizjak <ubizjak@gmail.com>2023-06-01 16:21:57 +0200
commitdec7aaabe9651cb075ace60721b6e36864cc5140 (patch)
tree3d8c5946f3b329106493241fb930372ac409694e /gcc/rtl.h
parentfe3ce0861081dd17e581c32b299b9c743d000470 (diff)
downloadgcc-dec7aaabe9651cb075ace60721b6e36864cc5140.zip
gcc-dec7aaabe9651cb075ace60721b6e36864cc5140.tar.gz
gcc-dec7aaabe9651cb075ace60721b6e36864cc5140.tar.bz2
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.
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r--gcc/rtl.h2
1 files changed, 1 insertions, 1 deletions
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 */