Re: [PATCH] x86: Speed up target attribute handling by using a cache

2021-12-01 Thread Uros Bizjak via Gcc-patches
On Mon, Nov 22, 2021 at 10:36 AM Jakub Jelinek wrote: > > Hi! > > The target attribute handling is very expensive and for the common case > from x86intrin.h where many functions get implicitly the same target > attribute, we can speed up compilation a lot by caching it. > > The following patches b

Re: [PATCH] x86: Speed up target attribute handling by using a cache

2021-11-22 Thread Jakub Jelinek via Gcc-patches
On Mon, Nov 22, 2021 at 02:10:08PM +0100, Martin Liška wrote: > On 11/22/21 14:05, Jakub Jelinek wrote: > > On Mon, Nov 22, 2021 at 02:03:19PM +0100, Martin Liška wrote: > > > I see only one patch attached, Jakub. Can you please send also the second > > > one? > > > > The first one has been inlin

Re: [PATCH] x86: Speed up target attribute handling by using a cache

2021-11-22 Thread Martin Liška
On 11/22/21 14:05, Jakub Jelinek wrote: On Mon, Nov 22, 2021 at 02:03:19PM +0100, Martin Liška wrote: I see only one patch attached, Jakub. Can you please send also the second one? The first one has been inlined in the mail body (the one with attribs.[ch] changes), the second one has been atta

Re: [PATCH] x86: Speed up target attribute handling by using a cache

2021-11-22 Thread Jakub Jelinek via Gcc-patches
On Mon, Nov 22, 2021 at 02:03:19PM +0100, Martin Liška wrote: > I see only one patch attached, Jakub. Can you please send also the second one? The first one has been inlined in the mail body (the one with attribs.[ch] changes), the second one has been attached (the one without that). Jaku

Re: [PATCH] x86: Speed up target attribute handling by using a cache

2021-11-22 Thread Martin Liška
On 11/22/21 10:36, Jakub Jelinek via Gcc-patches wrote: Hi! The target attribute handling is very expensive and for the common case from x86intrin.h where many functions get implicitly the same target attribute, we can speed up compilation a lot by caching it. The following patches both create

[PATCH] x86: Speed up target attribute handling by using a cache

2021-11-22 Thread Jakub Jelinek via Gcc-patches
Hi! The target attribute handling is very expensive and for the common case from x86intrin.h where many functions get implicitly the same target attribute, we can speed up compilation a lot by caching it. The following patches both create a single entry cache, where they cache for a particular ta