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: [ast-optimizer-branch]: SAVE_EXPR's not simplified right


>>>>> "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.

Jason


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