From a95c8615e52c428d83fc78b4e2d74c7b47946da1 Mon Sep 17 00:00:00 2001 From: Peter Bergner Date: Tue, 8 Apr 2008 09:40:27 -0500 Subject: [PATCH] Revert 2008-04-07 Peter Bergner PR middle-end/PR28690 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the same precedence as REG_POINTER and MEM_POINTER operands. From-SVN: r134095 --- gcc/ChangeLog | 9 +++++++++ gcc/rtlanal.c | 2 -- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 215cc83eb7a..d9fc4b30d44 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2008-04-08 Peter Bergner + + Revert + 2008-04-07 Peter Bergner + + PR middle-end/PR28690 + * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the + same precedence as REG_POINTER and MEM_POINTER operands. + 2008-04-08 Richard Guenther PR middle-end/35834 diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index f80d0ed1754..93833a3e951 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -2898,8 +2898,6 @@ commutative_operand_precedence (rtx op) switch (GET_RTX_CLASS (code)) { case RTX_CONST_OBJ: - if (code == SYMBOL_REF) - return -1; if (code == CONST_INT) return -6; if (code == CONST_DOUBLE) -- 2.30.2