diff options
author | Jeffrey A Law <law@cygnus.com> | 2001-07-02 15:43:38 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2001-07-02 09:43:38 -0600 |
commit | df0afdbe34b3b160dbbf42446a17616a18e1422b (patch) | |
tree | 573ef820b122367119fb85d9d16ca8e4b0c464a9 /gcc/simplify-rtx.c | |
parent | b9063b3da1a38f8671b2454c1507b1ea3497e49f (diff) | |
download | gcc-df0afdbe34b3b160dbbf42446a17616a18e1422b.zip gcc-df0afdbe34b3b160dbbf42446a17616a18e1422b.tar.gz gcc-df0afdbe34b3b160dbbf42446a17616a18e1422b.tar.bz2 |
+ * simplify-rtx.c (simplify_rtx): Use swap_commutative_operands_p.
+ * simplify-rtx.c (simplify_rtx): Use swap_commutative_operands_p.
Forgot to commit Friday.
From-SVN: r43692
Diffstat (limited to 'gcc/simplify-rtx.c')
-rw-r--r-- | gcc/simplify-rtx.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c index 20471cc..28bfad8 100644 --- a/gcc/simplify-rtx.c +++ b/gcc/simplify-rtx.c @@ -2526,14 +2526,7 @@ simplify_rtx (x) return simplify_unary_operation (code, mode, XEXP (x, 0), GET_MODE (XEXP (x, 0))); case 'c': - /* Put complex operands first and constants second if commutative. */ - if (GET_RTX_CLASS (code) == 'c' - && ((CONSTANT_P (XEXP (x, 0)) && GET_CODE (XEXP (x, 1)) != CONST_INT) - || (GET_RTX_CLASS (GET_CODE (XEXP (x, 0))) == 'o' - && GET_RTX_CLASS (GET_CODE (XEXP (x, 1))) != 'o') - || (GET_CODE (XEXP (x, 0)) == SUBREG - && GET_RTX_CLASS (GET_CODE (SUBREG_REG (XEXP (x, 0)))) == 'o' - && GET_RTX_CLASS (GET_CODE (XEXP (x, 1))) != 'o'))) + if (swap_commutative_operands_p (XEXP (x, 0), XEXP (x, 1))) { rtx tem; |