This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa] Fix gcc.dg/tree-ssa/20030530-2.c


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]