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: [patch] cse.c: Speed up cse_reg_info maintanance - Part 3



On Feb 1, 2005, at 6:35 PM, Mike Stump wrote:


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 proposal, why not free and then xmalloc instead of xrealloc, that way, we save the copy, which I suppose is the real cost you are trying to save.

Did you look at his patch (or did you look at it backwards)? He is proposing to remove the xrealloc and change it to a xfree. This is what he meant by simplifying the memory allocation.

-- Pinski


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