public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "hubicka at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/45605] Missed devirtualization Date: Mon, 20 Sep 2010 15:49:00 -0000 [thread overview] Message-ID: <20100920154858.942.qmail@sourceware.org> (raw) In-Reply-To: <bug-45605-176@http.gcc.gnu.org/bugzilla/> ------- Comment #20 from hubicka at gcc dot gnu dot org 2010-09-20 15:48 ------- Subject: Bug 45605 Author: hubicka Date: Mon Sep 20 15:48:42 2010 New Revision: 164438 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=164438 Log: PR tree-optimize/45605 * cgraph.h (const_value_known_p): Declare. (varpool_decide_const_value_known): Remove. * tree-ssa-ccp.c (get_base_constructor): Use it. * lto-cgraph.c (compute_ltrans_boundary): Likewise. * expr.c (string_constant): Likewise. * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise. * ipa.c (ipa_discover_readonly_nonaddressable_var, function_and_variable_visibility): Likewise. * gimplify.c (gimplify_call_expr): Likewise. * gimple-fold.c (get_symbol_constant_value): Likewise. * varpool.c (varpool_decide_const_value_known): Replace by... (const_value_known_p): ... this one; handle other kinds of DECLs too and work for automatic vars. (varpool_finalize_decl): Use const_value_known_p. * lto.c (lto_promote_cross_file_statics): Use const_value_known_p. * g++.dg/tree-ssa/pr45605.C: New testcase. Added: trunk/gcc/testsuite/g++.dg/tree-ssa/pr45605.C Modified: trunk/gcc/ChangeLog trunk/gcc/cgraph.h trunk/gcc/expr.c trunk/gcc/gimple-fold.c trunk/gcc/gimplify.c trunk/gcc/ipa.c trunk/gcc/lto-cgraph.c trunk/gcc/lto/ChangeLog trunk/gcc/lto/lto.c trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-ssa-ccp.c trunk/gcc/tree-ssa-loop-ivcanon.c trunk/gcc/varpool.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45605
next prev parent reply other threads:[~2010-09-20 15:49 UTC|newest] Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-09-09 1:14 [Bug c++/45605] New: " hubicka at gcc dot gnu dot org 2010-09-09 1:17 ` [Bug c++/45605] " pinskia at gcc dot gnu dot org 2010-09-09 8:43 ` rguenther at suse dot de 2010-09-09 11:03 ` hubicka at gcc dot gnu dot org 2010-09-09 11:33 ` hubicka at gcc dot gnu dot org 2010-09-09 11:36 ` hubicka at gcc dot gnu dot org 2010-09-10 9:42 ` hubicka at gcc dot gnu dot org 2010-09-15 18:43 ` jamborm at gcc dot gnu dot org 2010-09-15 19:10 ` rguenther at suse dot de 2010-09-15 22:40 ` hubicka at ucw dot cz 2010-09-16 8:51 ` rguenther at suse dot de 2010-09-16 12:26 ` hubicka at gcc dot gnu dot org 2010-09-16 12:31 ` rguenther at suse dot de 2010-09-16 12:49 ` hubicka at ucw dot cz 2010-09-16 12:51 ` rguenther at suse dot de 2010-09-16 14:55 ` rguenth at gcc dot gnu dot org 2010-09-16 16:00 ` jamborm at gcc dot gnu dot org 2010-09-16 16:07 ` rguenther at suse dot de 2010-09-17 14:46 ` jamborm at gcc dot gnu dot org 2010-09-18 21:25 ` hubicka at gcc dot gnu dot org 2010-09-20 15:49 ` hubicka at gcc dot gnu dot org [this message] 2010-09-20 15:54 ` hubicka at gcc dot gnu dot org
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=20100920154858.942.qmail@sourceware.org \ --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: linkBe 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).