This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [ast-optimizer-branch]: SAVE_EXPR's not simplified right
On Mon, May 06, 2002 at 10:12:59AM -0400, Daniel Berlin wrote:
> >
> > If we disable save_expr simplification, we get this one right
> > but we still create unnecessary expression copies.
> >
>
> I also tried only simplifying what's *in* the save_expr, but it doesn't
> completely fix it.
>
> It *does* fix a lot of cases however, so it might be workable.
>
> The cases it doesn't handle right are those where we have a
> self-modifying expression multiple times in the same stmt.
...
Maybe it's time to get rid of SAVE_EXPR altogether? Per Bothner had a
pretty detailed proposal for what to replace it with -- search the
mailing lists for LET_EXPR.
zw