Kill quadratic bottleneck in duplicate_eh_regions
Giovanni Bajo
giovannibajo@libero.it
Sat Jun 11 22:48:00 GMT 2005
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
More information about the Gcc-patches
mailing list