diff options
author | Jan Hubicka <jh@suse.cz> | 2001-05-22 09:40:26 +0200 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2001-05-22 00:40:26 -0700 |
commit | 8c9864f32d6c76ae5f3317148b29629c60a2f26b (patch) | |
tree | e077f1ff6c35cde9817f0a709edaf59ec48986c9 /gcc/simplify-rtx.c | |
parent | 083e9f9217548607ffd2655a2a89341b78fe06c2 (diff) | |
download | gcc-8c9864f32d6c76ae5f3317148b29629c60a2f26b.zip gcc-8c9864f32d6c76ae5f3317148b29629c60a2f26b.tar.gz gcc-8c9864f32d6c76ae5f3317148b29629c60a2f26b.tar.bz2 |
combine.c (gen_binary): Use swap_commutative_operands_p
* combine.c (gen_binary): Use swap_commutative_operands_p
(simplify_comparison): Likewise.
* expmed.c (emit_store_flag): Likewise.
* expr.c (compare_from_rtx): Likewise.
(do_compare_rtx_and_jump): Likewise.
* optabs.c (emit_cmp_and_jump_insn): Revert last patch; abort
if not emitting a branch and operands want swapping.
From-SVN: r42433
Diffstat (limited to 'gcc/simplify-rtx.c')
-rw-r--r-- | gcc/simplify-rtx.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c index e586b01..a4ca80f 100644 --- a/gcc/simplify-rtx.c +++ b/gcc/simplify-rtx.c @@ -1817,8 +1817,7 @@ simplify_relational_operation (code, mode, op0, op1) return 0; /* Make sure the constant is second. */ - if ((CONSTANT_P (op0) && ! CONSTANT_P (op1)) - || (GET_CODE (op0) == CONST_INT && GET_CODE (op1) != CONST_INT)) + if (swap_commutative_operands_p (op0, op1)) { tem = op0, op0 = op1, op1 = tem; code = swap_condition (code); |