This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Reducing the amount of builtins by merging named patterns
- From: Andi Kleen <andi at firstfloor dot org>
- To: Richard Henderson <rth at redhat dot com>
- Cc: Blumental Maxim <bvmaks at gmail dot com>, "gcc-patches\ at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 10 Dec 2014 15:53:53 -0800
- Subject: Re: Reducing the amount of builtins by merging named patterns
- Authentication-results: sourceware.org; auth=none
- References: <CACy_Q+yHug=84e+X=Ya=ae_5nzsd1-1wtz6_7t=v1sG4JdL8LA at mail dot gmail dot com> <548871BB dot 2070202 at redhat dot com>
Richard Henderson <rth@redhat.com> writes:
> On 12/10/2014 06:08 AM, Blumental Maxim wrote:
>> We have ~30 groups of similar (i.e.having similar sets of attributes)
>> named patterns. These groups together include ~230 template (i.e.
>> having substitution attributes in their names) named patterns in
>> total. So, we can reduce the amount of template named patterns by ~200
>> at best. Those template named patterns correspond to several specific
>> named patterns each. E.g. in my patch (see attached patch) I merged
>> two template named patterns into one and that allowed me to replace
>> four builtin's with only two.
>
> I don't find this particularly readable or maintainable.
> What do you hope to gain here?
I assume it would make the compiler faster and maybe smaller?
But also users may be using the existing builtin names,
so some compat macros would be needed.
-Andi