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 ] Simplify RETURN_EXPR handling


In message <wvladfrt4y4 dot fsf at prospero dot boston dot redhat dot com>, Jason Merrill writes:
 >On Wed, 19 Mar 2003 13:43:44 -0700, law at redhat dot com wrote:
 >
 >> Luckily it's not terribly difficult to limit the RHS of a MODIFY_EXPR
 >> appearing in a RETURN_EXPR.
 >
 >Doing this pessimizes returning a call to a function which returns a struct
 >(at least in C), but I suppose it's reasonable to expect that to get fixed
 >by later optimization.
Yea, putting the call back into the return_expr is a viable optimization
and shouldn't be terribly difficult to implement.

Jeff



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