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]

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,







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