Re: [PATCH] Speed-up def_builtin_const (ix86_valid_target_attribute)

2015-03-20 Thread Jan Hubicka
> gcc/ChangeLog: > > 2015-03-20 Martin Liska > Jakub Jelinek > > * config/i386/i386.c (def_builtin): Set deferred_isa_values for > masks that can potentially include a builtin. > (ix86_add_new_builtins): Introduce fast filter for isa values > that cannot tri

Re: [PATCH] Speed-up def_builtin_const (ix86_valid_target_attribute)

2015-03-20 Thread Martin Liška
On 03/20/2015 12:24 PM, Jakub Jelinek wrote: On Fri, Mar 20, 2015 at 11:33:09AM +0100, Martin Liška wrote: @@ -30670,6 +30673,20 @@ def_builtin_const (HOST_WIDE_INT mask, const char *name, static void ix86_add_new_builtins (HOST_WIDE_INT isa) { + /* Last cached isa value. */ + static H

Re: [PATCH] Speed-up def_builtin_const (ix86_valid_target_attribute)

2015-03-20 Thread Jakub Jelinek
On Fri, Mar 20, 2015 at 11:33:09AM +0100, Martin Liška wrote: > @@ -30670,6 +30673,20 @@ def_builtin_const (HOST_WIDE_INT mask, const char > *name, > static void > ix86_add_new_builtins (HOST_WIDE_INT isa) > { > + /* Last cached isa value. */ > + static HOST_WIDE_INT last_tested_isa_value =

Re: [PATCH] Speed-up def_builtin_const (ix86_valid_target_attribute)

2015-03-20 Thread Martin Liška
On 03/20/2015 01:10 AM, Jan Hubicka wrote: Hi. Explanation of the patch is introduced. thanks mask &= ~OPTION_MASK_ISA_64BIT; if (mask == 0 @@ -30670,6 +30673,14 @@ def_builtin_const (HOST_WIDE_INT mask, const char *name, static void ix86_add_new_builtins (HOST_WIDE_IN

Re: [PATCH] Speed-up def_builtin_const (ix86_valid_target_attribute)

2015-03-19 Thread Jan Hubicka
> Hi. > > Explanation of the patch is introduced. thanks > > >> > >>mask &= ~OPTION_MASK_ISA_64BIT; > >>if (mask == 0 > >>@@ -30670,6 +30673,14 @@ def_builtin_const (HOST_WIDE_INT mask, const char > >>*name, > >> static void > >> ix86_add_new_builtins (HOST_WIDE_INT isa) > >>

Re: [PATCH] Speed-up def_builtin_const (ix86_valid_target_attribute)

2015-03-19 Thread Martin Liška
On 03/13/2015 05:42 AM, Jan Hubicka wrote: 2015-03-09 Martin Liska * config/i386/i386.c (def_builtin): Collect union of all possible masks. (ix86_add_new_builtins): Do not iterate over all builtins in cases that isa value has no intersection with possible masks

Re: [PATCH] Speed-up def_builtin_const (ix86_valid_target_attribute)

2015-03-12 Thread Jan Hubicka
> 2015-03-09 Martin Liska > > * config/i386/i386.c (def_builtin): Collect union of all > possible masks. > (ix86_add_new_builtins): Do not iterate over all builtins > in cases that isa value has no intersection with possible masks > and(or) last passed value is equ