This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Kill quadratic bottleneck in duplicate_eh_regions


Jan Hubicka <jh@suse.cz> wrote:

> *************** struct eh_status GTY(())
> *** 210,216 ****
>     struct eh_region *region_tree;
>
>     /* The same information as an indexable array.  */
> !   struct eh_region ** GTY ((length ("%h.last_region_number")))
> region_array;
>
>     /* The most recently open region.  */
>     struct eh_region *cur_region;
> --- 210,216 ----
>     struct eh_region *region_tree;
>
>     /* The same information as an indexable array.  */
> !   varray_type GTY((param_is (struct eh_region))) region_array;
>
>     /* The most recently open region.  */
>     struct eh_region *cur_region;

I think there is agreement that VEC is uniformly better than VARRAY, and we are
trying to move away from VARRAY replacing all occurrences with VEC. So you
should not probably introduce new uses.

Giovanni Bajo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]