This is the mail archive of the
mailing list for the GCC project.
Re: Refine rules for function versioning
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 26 Jun 2009 15:09:01 -0700
- Subject: Re: Refine rules for function versioning
- References: <4A451751.email@example.com>
On Fri, Jun 26, 2009 at 11:45 AM, Richard Henderson<firstname.lastname@example.org> wrote:
> This is a small merge from the trans-mem branch, where I want to allow more
> functions to be versioned. ?Merging this now means those rules get tested
> with the ipa-cp routines on mainline, which should lead to less breakage
> when merging the branch.
> At present, function versioning is using exactly the same rules as for
> function inlining, even though quite a number of those rules don't really
> make sense as versioning rules -- such as calls to alloca or setjmp.
> This patch splits out the rules that apply only to the copying of code and
> uses that as a common base for both inlining and versioning. Further, rules
> that apply only to ipcp's algorithms are pushed into a new function specific
> to ipcp.
> Finally, it fixes one bug that is exposed by ipcp now versioning a function
> that contains nested functions.
> Tested on x86-64 with ada.
This may have caused: