Refine rules for function versioning

H.J. Lu hjl.tools@gmail.com
Fri Jun 26 22:23:00 GMT 2009


On Fri, Jun 26, 2009 at 11:45 AM, Richard Henderson<rth@redhat.com> 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:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40565

-- 
H.J.



More information about the Gcc-patches mailing list