This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] remove duplicated code in fold-const.c
- From: Eric Christopher <echristo at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 29 Sep 2004 12:44:16 -0700
- Subject: [committed] remove duplicated code in fold-const.c
Looks like it came in with the tree-ssa merge.
Committed as obvious. Bootstrapped on x86-linux as a precaution.
-eric
--
Eric Christopher <echristo@redhat.com>
2004-09-29 Eric Christopher <echristo@redhat.com>
* fold-const.c (tree_swap_operands_p): Remove duplicated code.
Index: fold-const.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/fold-const.c,v
retrieving revision 1.464
diff -u -p -w -r1.464 fold-const.c
--- fold-const.c 25 Sep 2004 14:36:37 -0000 1.464
+++ fold-const.c 29 Sep 2004 19:43:12 -0000
@@ -5952,15 +5952,6 @@ tree_swap_operands_p (tree arg0, tree ar
if (DECL_P (arg0))
return 1;
- if (reorder && flag_evaluation_order
- && (TREE_SIDE_EFFECTS (arg0) || TREE_SIDE_EFFECTS (arg1)))
- return 0;
-
- if (DECL_P (arg1))
- return 0;
- if (DECL_P (arg0))
- return 1;
-
/* It is preferable to swap two SSA_NAME to ensure a canonical form
for commutative and comparison operators. Ensuring a canonical
form allows the optimizers to find additional redundancies without