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: RFC: PATCH to use REFERENCE_TYPE for return by invisible reference


Jason Merrill <jason@redhat.com> writes:

| This patch follows up on my earlier patch to give parms passed by invisible
| reference REFERENCE_TYPE so that the optimizers know that they need to live
| past the end of the function.  This patch does the same for the
| RESULT_DECL.
| 
| This change is not as clearly necessary as the parallel one for parms was,
| since the RESULT_DECL is a pretty magical construct, but since in fact
| affected functions work by passing in and returning the address of the
| return slot, this patch does make what's really going on more explicit in
| the tree representation.
| 
| Tested x86_64-pc-linux-gnu with no regressions.  Bootstrap sped up
| dramatically in my testrun, from about 80 minutes to about 65 minutes user
| time, but it seems unlikely that this patch could have that effect, so I'm
| assuming that it was a transient timing artifact.  Testing ran slightly
| faster.
| 
| Does this seem like a good idea?

I like it.

-- Gaby


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