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: Trim down memory usage in alias.c


On Tue, Jan 20, 2004 at 09:39:21PM +0100, Jan Hubicka wrote:
> + static unsigned int old_reg_base_value_size;
[...]
> !       reg_base_value_size = old_reg_base_value_size;
> !       if (reg_base_value_size > maxreg * 2)
> ! 	reg_base_value_size = maxreg * 2;
[...]
> +   old_reg_base_value_size = reg_base_value_size;

Better than this, which crops the known size of the old array,
would be to use ggc_get_size when looking to reuse the old array.


r~


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