This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [ tree-ssa ] Simplify RETURN_EXPR handling
- From: law at redhat dot com
- To: Jason Merrill <jason at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 19 Mar 2003 14:45:36 -0700
- Subject: Re: [ tree-ssa ] Simplify RETURN_EXPR handling
- Reply-to: law at redhat dot com
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