This is the mail archive of the
mailing list for the GCC project.
Re: [patch] cse.c: Speed up cse_reg_info maintanance - Part 3
- From: Mike Stump <mrs at apple dot com>
- To: Kazu Hirata <kazu at cs dot umass dot edu>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 1 Feb 2005 15:30:55 -0800
- Subject: Re: [patch] cse.c: Speed up cse_reg_info maintanance - Part 3
- References: <email@example.com>
On Feb 1, 2005, at 3:12 PM, Kazu Hirata wrote:
Attached is a patch to speed up cse_reg_info maintainance by
dramatically simplifying the memory allocation.
Tested on i686-pc-linux-gnu. OK to apply?
This is exactly the type of patch that kills performance on darwin.
I have a counter idea, what about freeing the memory and xmallocing
some more when we run out, instead of xrealloc; that way, no copying,
which I suppose is the thing that is really killing this.