public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Guenther <richard.guenther@gmail.com>
To: Dimitrios Apostolou <jimis@gmx.net>
Cc: gcc-patches@gcc.gnu.org, Andrey Belevantsev <abel@ispras.ru>
Subject: Re: alloc_pool for tree-ssa-pre.c:phi_translate_table
Date: Mon, 20 Aug 2012 07:38:00 -0000	[thread overview]
Message-ID: <CAFiYyc3uzjK9M0v-YyYOHpX1Y0AjgQYQamCGSq96SKr4geW71A@mail.gmail.com> (raw)
In-Reply-To: <alpine.LNX.2.02.1208191206430.20463@localhost.localdomain>

On Sun, Aug 19, 2012 at 8:30 PM, Dimitrios Apostolou <jimis@gmx.net> wrote:
>
>
> 2012-08-19  Dimitrios Apostolou  <jimis@gmx.net>
>
>         * gcc/tree-ssa-pre.c (phi_translate_pool): New static global
>         alloc_pool, used for allocating struct expr_pred_trans_d for
>         phi_translate_table.
>         (phi_trans_add, init_pre, fini_pre): Use it, avoids thousand of
>         malloc() and free() calls.
>
>
> This avoids lots of malloc/free calls and slow iterations during numerous
> htab_delete() in fini_pre(). Tested on pre C++-snapshot, will update info as
> soon as a post C++ one is available.

Ok, if bootstrap / testing still succeeds.

Thanks,
Richard.

>
> Thanks,
> Dimitris

  reply	other threads:[~2012-08-20  7:38 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-18 11:19 Speedups/Cleanups: End of GSOC patch collection Dimitrios Apostolou
2012-08-18 11:50 ` Dimitrios Apostolou
2012-08-18 16:37 ` Dimitrios Apostolou
2012-08-20  9:20   ` Dodji Seketeli
2012-08-24 15:41     ` Tom Tromey
2012-08-18 18:10 ` [graphds.h] Allocate graph from obstack Dimitrios Apostolou
2012-08-19 16:55   ` Richard Guenther
2012-08-20 12:04     ` Paolo Bonzini
2012-08-20 12:17       ` Richard Guenther
2012-08-20 13:17       ` Dimitrios Apostolou
2012-08-18 19:10 ` more malloc mitigation Dimitrios Apostolou
2012-08-19 18:30 ` obstack for equiv_class_label, more vectors on stack Dimitrios Apostolou
2012-08-19 18:30 ` alloc_pool for tree-ssa-pre.c:phi_translate_table Dimitrios Apostolou
2012-08-20  7:38   ` Richard Guenther [this message]
2012-08-20  9:29     ` Jakub Jelinek
2012-08-20  9:37       ` Dimitrios Apostolou
2012-08-19 18:31 ` enlarge hot allocation pools Dimitrios Apostolou
2012-08-19 21:55   ` Steven Bosscher
2012-08-20  3:26     ` Dimitrios Apostolou
2012-08-20 14:55 ` [DF] RFC: obstacks in DF Dimitrios Apostolou
2012-08-20 15:32   ` Steven Bosscher
2012-08-20 17:04 ` failed attempt: retain identifier length from frontend to backend Dimitrios Apostolou
2012-08-21  6:07   ` Richard Guenther
2012-08-24 16:12   ` Tom Tromey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFiYyc3uzjK9M0v-YyYOHpX1Y0AjgQYQamCGSq96SKr4geW71A@mail.gmail.com \
    --to=richard.guenther@gmail.com \
    --cc=abel@ispras.ru \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jimis@gmx.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).