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 Wednesday, May 08, 2002 12:48:29 PM +0100 Jason Merrill
<jason@redhat.com> wrote:
>>>>>> "Gabriel" == Gabriel Dos Reis <gdr@codesourcery.com> writes:
>
>> Jason, what issues make you favor elimination in post-processing pass
>> instead of getting rid of it from the outset?
>
> Because when I'm generating code that needs to store a temporary result, I
> don't want to have to worry about setting up an appropriate scope and
> inserting a DECL_STMT by hand. Lifetime of temporaries issues are tricky.
> Though I suppose that it wouldn't be difficult to encapsulate that stuff
> in, say, create_temporary_var. So never mind.
Yup, that's what I had in mind...
Well, now we just need someone to do it.
We've already got problems where we keep adding optimizations and keep
making our compiler slower; people don't like this. If we can eliminate
SAVE_EXPRs in the front end as we create them, rather than in the
optimizer, we win.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com