This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Remove a useless call to ggc_strdup (small speedup)
- From: "Christophe Jaillet" <christophe dot jaillet at wanadoo dot fr>
- To: <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 8 Feb 2005 23:41:11 +0100
- Subject: Remove a useless call to ggc_strdup (small speedup)
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.
Bootstrap on a cygwin machine based on snapshot from 20050130.
2005-02-08 Christophe Jaillet <christophe.jaillet@wanadoo.fr>
* tree-ssa-loop-ivopts.c (get_address_cost): Remove a useless call to
ggc_strdup
*** gcc-4.0-20050130/gcc/tree-ssa-loop-ivopts.c Tue Feb 8 23:39:24 2005
--- my_patch/tree-ssa-loop-ivopts.c Tue Feb 8 23:29:14 2005
*************** get_address_cost (bool symbol_present, b
*** 2685,2691 ****
if (symbol_present)
{
! base = gen_rtx_SYMBOL_REF (Pmode, ggc_strdup (""));
if (offset_p)
base = gen_rtx_fmt_e (CONST, Pmode,
gen_rtx_fmt_ee (PLUS, Pmode,
--- 2685,2691 ----
if (symbol_present)
{
! base = gen_rtx_SYMBOL_REF (Pmode, "");
if (offset_p)
base = gen_rtx_fmt_e (CONST, Pmode,
gen_rtx_fmt_ee (PLUS, Pmode,