This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[tree-ssa] Minor cleanup to last tree-ssa.c patch
- From: law at redhat dot com
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 11 Jun 2003 08:59:42 -0600
- Subject: [tree-ssa] Minor cleanup to last tree-ssa.c patch
- Reply-to: law at redhat dot com
We no longer need to special case CALLs when setting may_optimize_p, calls
will be caught by the TREE_SIDE_EFFECTS check.
* tree-ssa.c (rewrite_and_optimize_stmt): Do not special case
CALL_EXPRs they're caught by the TREE_SIDE_EFFECTS test.
Index: tree-ssa.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-ssa.c,v
retrieving revision 1.1.4.90
diff -c -3 -p -r1.1.4.90 tree-ssa.c
*** tree-ssa.c 11 Jun 2003 14:11:11 -0000 1.1.4.90
--- tree-ssa.c 11 Jun 2003 14:59:22 -0000
*************** rewrite_and_optimize_stmt (block_stmt_it
*** 2070,2077 ****
&& !ann->has_volatile_ops
&& vdefs == NULL
&& def_p
! && ! TREE_SIDE_EFFECTS (TREE_OPERAND (stmt, 1))
! && ! TREE_CODE (TREE_OPERAND (stmt, 1)) != CALL_EXPR;
if (may_optimize_p)
{
--- 2070,2076 ----
&& !ann->has_volatile_ops
&& vdefs == NULL
&& def_p
! && ! TREE_SIDE_EFFECTS (TREE_OPERAND (stmt, 1));
if (may_optimize_p)
{