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 middle-end/40762] [4.5 Regression] CD-DCE messes up virtual SSA form
Date: Wed, 15 Jul 2009 10:17:00 -0000	[thread overview]
Message-ID: <20090715101720.22231.qmail@sourceware.org> (raw)
In-Reply-To: <bug-40762-12544@http.gcc.gnu.org/bugzilla/>



------- Comment #3 from rguenth at gcc dot gnu dot org  2009-07-15 10:17 -------
We have wrong SSA form before FRE:

;; Function func_36 (func_36)

func_36 ()
{
  uint8_t g_64.8;
  int64_t g_10.5;

<bb 2>:
  # .MEM_17 = VDEF <.MEM_16(D)>
  g_10 = 1;
  # VUSE <.MEM_17>
  g_10.5_2 = g_10;
  if (g_10.5_2 != 0)
    goto <bb 3>;
  else
    goto <bb 4>;

<bb 3>:
  # .MEM_18 = VDEF <.MEM_17>
  func_53 ();

<bb 4>:
  # VUSE <.MEM_17>
  g_10.5_11 = g_10;
  g_64.8_12 = (uint8_t) g_10.5_11;
  # .MEM_19 = VDEF <.MEM_17>
  g_64 = g_64.8_12;
  return 1;

There is a PHI node missing to merge .MEM_18 and .MEM_17.

Which is caused by CD-DCE changes again.  Honza?


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|rguenth at gcc dot gnu dot  |hubicka at gcc dot gnu dot
                   |org                         |org
          Component|c                           |middle-end
           Keywords|                            |wrong-code
           Priority|P3                          |P1
            Summary|possible integer            |[4.5 Regression] CD-DCE
                   |miscompilation              |messes up virtual SSA form
   Target Milestone|---                         |4.5.0


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


  parent reply	other threads:[~2009-07-15 10:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-15  6:33 [Bug c/40762] New: possible integer miscompilation regehr at cs dot utah dot edu
2009-07-15  7:46 ` [Bug c/40762] " steven at gcc dot gnu dot org
2009-07-15 10:09 ` rguenth at gcc dot gnu dot org
2009-07-15 10:10 ` rguenth at gcc dot gnu dot org
2009-07-15 10:17 ` rguenth at gcc dot gnu dot org [this message]
2009-09-07 10:24 ` [Bug middle-end/40762] [4.5 Regression] CD-DCE messes up virtual SSA form 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=20090715101720.22231.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).