This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Remove a useless call to ggc_strdup (small speedup)
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: "Christophe Jaillet" <christophe dot jaillet at wanadoo dot fr>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 8 Feb 2005 18:05:53 -0500
- Subject: Re: Remove a useless call to ggc_strdup (small speedup)
- References: <001401c50e2f$4a64d0e0$96cefea9@none>
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