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:03:24 +0000 (16:03 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Fri, 21 Mar 2003 00:03:24 +0000 (16:03 -0800)
        * fold-const.c (extract_muldiv_1): Revert changing order of
        operands in case MULT_EXPR of 2003-02-16 patch.

From-SVN: r64632

gcc/ChangeLog
gcc/fold-const.c

index 5584548..7463daa 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-20  Daniel Berlin  <dberlin@dberlin.org>
        Merge changes from new-regalloc-branch 
 
index 7477269..7b051fa 100644 (file)
@@ -4331,14 +4331,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: