This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] Fix gcc.dg/tree-ssa/20030530-2.c
- From: Diego Novillo <dnovillo at redhat dot com>
- To: Jeff Law <law at redhat dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: 11 Jun 2003 10:24:45 -0400
- Subject: Re: [tree-ssa] Fix gcc.dg/tree-ssa/20030530-2.c
- Organization: Red Hat Canada
- References: <200306111412.h5BECT0x013208@speedy.slc.redhat.com>
On Wed, 2003-06-11 at 10:12, law@redhat.com wrote:
> Doing these things exposes a latent but in how we set may_optimize_p for
> expresssions. Namely we set it for expressions in which TREE_SIDE_EFFECTS
> is set. tsk tsk.
>
I thought that TREE_SIDE_EFFECTS should not be set on GIMPLE
expressions, with the exception of CALL_EXPRs. Aren't you just papering
over a gimplification bug here?
Also, don't we recognize functions whose calls can be elided if they're
called with the same arguments repeatedly? (I forget the technical term
:)
Diego.