public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "markus at trippelsdorf dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/56671] Gcc uses large amounts of memory and processor power with large C++11 bitsets
Date: Thu, 21 Mar 2013 08:32:00 -0000	[thread overview]
Message-ID: <bug-56671-4-X8SqxtXCcF@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-56671-4@http.gcc.gnu.org/bugzilla/>


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56671

--- Comment #1 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2013-03-21 08:31:57 UTC ---
Created attachment 29703
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29703
callgraph

Looks like a bug in constant expression handling.

perf shows:
 15.51%   cc1plus  cc1plus            [.] gt_ggc_mx_lang_tree_node(void*)
 11.14%   cc1plus  cc1plus            [.] walk_tree_1(tree_node**, tree_node*
(*)(tree_node**, int*, void*), void*, pointer_set_t*, tree_node*
(*)(tree_node**, int*, tree_no
  9.54%   cc1plus  cc1plus            [.] htab_expand.1557810
  7.28%   cc1plus  cc1plus            [.] ggc_set_mark(void const*)
  6.35%   cc1plus  cc1plus            [.] lookup_page_table_entry(void const*)
[clone .218759]
  6.32%   cc1plus  cc1plus            [.] build_int_cst(tree_node*, long)
  5.07%   cc1plus  [kernel.kallsyms]  [k] clear_page_c
  3.60%   cc1plus  cc1plus            [.]
initializer_constant_valid_p_1(tree_node*, tree_node*, tree_node**) [clone
.1222026]
  3.46%   cc1plus  cc1plus            [.] mostly_copy_tree_r(tree_node**, int*,
void*) [clone .459380]
  2.57%   cc1plus  cc1plus            [.] gt_ggc_mx(constructor_elt_d&)
  2.21%   cc1plus  cc1plus            [.] vec<constructor_elt_d, va_gc,
vl_embed>::copy() const [clone .local.823]
  1.97%   cc1plus  cc1plus            [.] int_cst_hash_hash(void const*) [clone
.1202876]
  1.94%   cc1plus  cc1plus            [.] cxx_eval_vec_init_1(constexpr_call
const*, tree_node*, tree_node*, bool, bool, bool, bool*, bool*) [clone
.109131.20812] 


cxx_eval_outermost_constant_expr -> cxx_eval_constant_expression ->
-> cxx_eval_vec_init_1 -> build_int_cst 
(see attached callgraph)


  reply	other threads:[~2013-03-21  8:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-21  1:34 [Bug c++/56671] New: " m101010a at gmail dot com
2013-03-21  8:32 ` markus at trippelsdorf dot de [this message]
2013-09-10 19:02 ` [Bug c++/56671] " tudorb at fb dot com

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=bug-56671-4-X8SqxtXCcF@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /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).