diff options
author | Roger Sayle <roger@eyesopen.com> | 2004-03-09 17:06:25 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2004-03-09 17:06:25 +0000 |
commit | 7ce3e360d677bac3834870166daa19102354f97d (patch) | |
tree | 5ba3ac08512b4ef5ef973ef6ab99aab95cee4053 /gcc/dojump.c | |
parent | 0da99d4e61c59953f97eade1f44c23205c7949f5 (diff) | |
download | gcc-7ce3e360d677bac3834870166daa19102354f97d.zip gcc-7ce3e360d677bac3834870166daa19102354f97d.tar.gz gcc-7ce3e360d677bac3834870166daa19102354f97d.tar.bz2 |
simplify-rtx.c (simplify_const_relational_operation): New function renamed from simplify_relational_operation.
* simplify-rtx.c (simplify_const_relational_operation): New function
renamed from simplify_relational_operation.
(simplify_relational_operation): Change prototype to accept an
additional mode argument. Call simplify_const_relational_operation.
(simplify_gen_relational): Update simplify_relational_operation call.
(simplify_ternary_operation): Update simplify_relational_operation
subroutine call to use simplify_const_relational_operation instead.
* rtl.h (simplify_const_relational_operation): Prototype here.
(simplify_relational_operation): Add addtional mode argument.
* combine.c (combine_simplify_rtx): Update calls to
simplify_relational_operation.
(simplify_set): Likewise.
(gen_binary): Likewise.
* cse.c (fold_rtx): Likewise.
* dojump.c (compare_from_rtx): Likewise.
(do_compare_rtx_and_jump): Likewise.
* integrate.c (subst_constants): Likewise.
* unroll.c (simplify_cmp_and_jump_insns): Likewise.
From-SVN: r79187
Diffstat (limited to 'gcc/dojump.c')
-rw-r--r-- | gcc/dojump.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/dojump.c b/gcc/dojump.c index 6b9569b..48e4953 100644 --- a/gcc/dojump.c +++ b/gcc/dojump.c @@ -787,7 +787,8 @@ compare_from_rtx (rtx op0, rtx op1, enum rtx_code code, int unsignedp, do_pending_stack_adjust (); ucode = unsignedp ? unsigned_condition (code) : code; - if ((tem = simplify_relational_operation (ucode, mode, op0, op1)) != 0) + tem = simplify_const_relational_operation (ucode, mode, op0, op1); + if (tem != 0) return tem; #if 0 @@ -865,7 +866,8 @@ do_compare_rtx_and_jump (rtx op0, rtx op1, enum rtx_code code, int unsignedp, do_pending_stack_adjust (); ucode = unsignedp ? unsigned_condition (code) : code; - if ((tem = simplify_relational_operation (ucode, mode, op0, op1)) != 0) + tem = simplify_const_relational_operation (ucode, mode, op0, op1); + if (tem != 0) { if (tem == const_true_rtx) { |