Revert
authorPeter Bergner <bergner@vnet.ibm.com>
Tue, 8 Apr 2008 14:40:27 +0000 (09:40 -0500)
committerPeter Bergner <bergner@gcc.gnu.org>
Tue, 8 Apr 2008 14:40:27 +0000 (09:40 -0500)
2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>

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
gcc/rtlanal.c

index 215cc83eb7a7011782ed5e1fc9fb06c3292f54d8..d9fc4b30d44f4b9308a58caa721b1bbab7238d91 100644 (file)
@@ -1,3 +1,12 @@
+2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
+
+       Revert
+       2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
+
+       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  <rguenther@suse.de>
 
        PR middle-end/35834
index f80d0ed1754e06996424fe0e901b47287fefc4a2..93833a3e9518811a719f8abd87aefdfe6e07b464 100644 (file)
@@ -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)