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 c++/13954] [tree-ssa] SRA does not work for classes that use inheritance with an empty base
Date: Sat, 26 Sep 2009 15:30:00 -0000	[thread overview]
Message-ID: <20090926153016.19300.qmail@sourceware.org> (raw)
In-Reply-To: <bug-13954-1008@http.gcc.gnu.org/bugzilla/>



------- Comment #15 from rguenth at gcc dot gnu dot org  2009-09-26 15:30 -------
On trunk we get

<bb 2>:
  # .MEM_3 = VDEF <.MEM_2(D)>
  param.f1 = 0;
  # .MEM_4 = VDEF <.MEM_3>
  memcpy (&local, &param, 9);
  # VUSE <.MEM_4>
  D.1743_1 = local.f1;
  if (D.1743_1 != 0)
    goto <bb 3>;
  else
    goto <bb 4>;

<bb 3>:
  # .MEM_5 = VDEF <.MEM_4>
  link_error ();

<bb 4>:
  return;

which shows this is an issue of value-numbering not looking through
memcpy.  SRA obviously does not work here because both vars have their
address taken.  The issue in the summary should have been fixed by the
SRA rewrite.

I'm looking at the VN issue.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rguenth at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2006-10-24 12:34:46         |2009-09-26 15:30:16
               date|                            |


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


  parent reply	other threads:[~2009-09-26 15:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-13954-1008@http.gcc.gnu.org/bugzilla/>
2006-03-06 14:42 ` rguenth at gcc dot gnu dot org
2006-10-24 12:34 ` rguenth at gcc dot gnu dot org
2006-10-24 18:31 ` dberlin at gcc dot gnu dot org
2009-09-26 15:30 ` rguenth at gcc dot gnu dot org [this message]
2010-08-11 12:34 ` rguenth at gcc dot gnu dot org
     [not found] <bug-13954-4@http.gcc.gnu.org/bugzilla/>
2011-03-08 15:51 ` rguenth at gcc dot gnu.org
2011-03-15 13:39 ` rguenth at gcc dot gnu.org
2011-03-15 13:55 ` rguenth at gcc dot gnu.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=20090926153016.19300.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).