[ast-optimizer-branch]: SAVE_EXPR's not simplified right
Jason Merrill
jason@redhat.com
Tue May 7 06:11:00 GMT 2002
>>>>> "Mark" == Mark Mitchell <mark@codesourcery.com> writes:
> --On Monday, May 06, 2002 08:31:57 AM -0700 Zack Weinberg
> <zack@codesourcery.com> wrote:
>> 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.
> That would be good. I'd go even further; just create explicitly create
> temporaries in DECL_STMTs and use them. It's not hard to keep track
> of the most recently opened scope so that you know where to put such
> statements.
Are you suggesting this at tree generation time, or as a post-processing
pass? I would lean towards the latter. We could also do something similar
for TARGET_EXPR.
Jason
More information about the Gcc-patches
mailing list