]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
fold-const.c (extract_muldiv_1): Revert changing order of operands in case MULT_EXPR...
authorRichard Henderson <rth@redhat.com>
Fri, 21 Mar 2003 00:04:50 +0000 (16:04 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Fri, 21 Mar 2003 00:04:50 +0000 (16:04 -0800)
        * fold-const.c (extract_muldiv_1): Revert changing order of
        operands in case MULT_EXPR of 2003-02-16 patch.

From-SVN: r64634

gcc/ChangeLog
gcc/fold-const.c

index d51e167d32e81eabdac4fe6cd948d327d9940357..dfe5a4df263c60045220d88e9f0ebf71917bb21a 100644 (file)
@@ -1,3 +1,8 @@
+2003-03-20  Richard Henderson  <rth@redhat.com>
+
+       * fold-const.c (extract_muldiv_1): Revert changing order of
+       operands in case MULT_EXPR of 2003-02-16 patch.
+
 2003-03-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
 
        PR optimization/8746
index ccf0a7cc2158026d94c98c270b5c40416c234458..06f36d8542def638bdb84cbd8bd8d8b622dd3e23 100644 (file)
@@ -4719,14 +4719,6 @@ extract_muldiv_1 (t, c, code, wide_type)
          && integer_zerop (const_binop (TRUNC_MOD_EXPR, op1, c, 0)))
        return omit_one_operand (type, integer_zero_node, op0);
 
-      /* Arrange for the code below to simplify two constants first.  */
-      if (TREE_CODE (op1) == INTEGER_CST && TREE_CODE (op0) != INTEGER_CST)
-       {
-         tree tmp = op0;
-         op0 = op1;
-         op1 = tmp;
-       }
-
       /* ... fall through ...  */
 
     case TRUNC_DIV_EXPR:  case CEIL_DIV_EXPR:  case FLOOR_DIV_EXPR: