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: Remove a useless call to ggc_strdup (small speedup)



On Feb 8, 2005, at 5:41 PM, Christophe Jaillet wrote:


Description : function get_address_cost in tree-ssa-loop-ivopts.c call
ggc_strdup with an empty string ("") as a parameter. There is no need to do
it.

Actually there is a need for it, SYMBOL_REF's name needs to be in GC space.
Now moving the ggc_strdup out of the loop would be better.


-- Pinski


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