public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/31146] forwprop does not look through casts
Date: Wed, 02 May 2007 09:13:00 -0000	[thread overview]
Message-ID: <20070502091301.19628.qmail@sourceware.org> (raw)
In-Reply-To: <bug-31146-10053@http.gcc.gnu.org/bugzilla/>



------- Comment #9 from rguenth at gcc dot gnu dot org  2007-05-02 10:13 -------
Subject: Bug 31146

Author: rguenth
Date: Wed May  2 09:12:49 2007
New Revision: 124349

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=124349
Log:
2007-05-02  Richard Guenther  <rguenther@suse.de>

        PR tree-optimization/31146
        * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): New
        argument, single_use_p.  If we have a single use that is
        a conversion to the definition rhs type, propagate that rhs.
        (forward_propagate_addr_expr): Pass single_use_p argument
        to forward_propagate_addr_expr_1.

        * g++.dg/tree-ssa/pr31146-2.C: New testcase.

Added:
    trunk/gcc/testsuite/g++.dg/tree-ssa/pr31146-2.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-forwprop.c


-- 


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


  parent reply	other threads:[~2007-05-02  9:13 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-12 12:23 [Bug tree-optimization/31146] New: " rguenth at gcc dot gnu dot org
2007-03-12 14:59 ` [Bug tree-optimization/31146] " pinskia at gcc dot gnu dot org
2007-03-12 15:09 ` pinskia at gcc dot gnu dot org
2007-03-12 15:35 ` rguenth at gcc dot gnu dot org
2007-03-12 15:41 ` pinskia at gcc dot gnu dot org
2007-03-12 16:01 ` rguenth at gcc dot gnu dot org
2007-03-16 10:11 ` rguenth at gcc dot gnu dot org
2007-03-20 11:05 ` rguenth at gcc dot gnu dot org
2007-03-20 12:49 ` mueller at gcc dot gnu dot org
2007-05-02  9:13 ` rguenth at gcc dot gnu dot org [this message]
2007-05-02  9:17 ` rguenth 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=20070502091301.19628.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: 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).