public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/49344] ICE in tree-flow-inline.h:745 while bootstrap
Date: Thu, 09 Jun 2011 15:14:00 -0000	[thread overview]
Message-ID: <bug-49344-4-MAvE395V1o@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-49344-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-06-09 15:13:18 UTC ---
Sounds a bit strange.  It must be (my tree doesn't match the lines exactly):

          /* Make sure the negate statement becomes dead with this
             single transformation.  */
          if (!single_imm_use (gimple_assign_lhs (use_stmt),
                               &use_p, &neguse_stmt))
            return false;

          /* Make sure the multiplication isn't also used on that stmt.  */
          FOR_EACH_SSA_TREE_OPERAND (use, neguse_stmt, iter, SSA_OP_USE)
            if (use == mul_result)
              return false;

"guessed patch":

Index: gcc/tree-ssa-math-opts.c
===================================================================
--- gcc/tree-ssa-math-opts.c    (revision 174845)
+++ gcc/tree-ssa-math-opts.c    (working copy)
@@ -2174,7 +2174,7 @@ convert_mult_to_fma (gimple mul_stmt, tr
       if (use_code == NEGATE_EXPR)
        {
          ssa_op_iter iter;
-         tree use;
+         use_operand_p usep;

          result = gimple_assign_lhs (use_stmt);

@@ -2185,8 +2185,8 @@ convert_mult_to_fma (gimple mul_stmt, tr
            return false;

          /* Make sure the multiplication isn't also used on that stmt.  */
-         FOR_EACH_SSA_TREE_OPERAND (use, neguse_stmt, iter, SSA_OP_USE)
-           if (use == mul_result)
+         FOR_EACH_PHI_OR_STMT_USE (usep, neguse_stmt, iter, SSA_OP_USE)
+           if (USE_FROM_PTR (usep) == mul_result)
              return false;

          /* Re-validate.  */


  parent reply	other threads:[~2011-06-09 15:14 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-09 13:54 [Bug bootstrap/49344] New: " revital.eres at linaro dot org
2011-06-09 14:42 ` [Bug bootstrap/49344] " dominiq at lps dot ens.fr
2011-06-09 14:43 ` dominiq at lps dot ens.fr
2011-06-09 15:14 ` rguenth at gcc dot gnu.org [this message]
2011-06-09 15:15 ` dominiq at lps dot ens.fr
2011-06-09 16:07 ` andi-gcc at firstfloor dot org
2011-06-09 16:33 ` dominiq at lps dot ens.fr
2011-06-09 18:45 ` pthaugen at gcc dot gnu.org
2011-06-10  8:33 ` dominiq at lps dot ens.fr
2011-06-10 11:08 ` rguenth at gcc dot gnu.org
2011-06-10 12:22 ` rguenth at gcc dot gnu.org
2011-06-10 12:24 ` 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=bug-49344-4-MAvE395V1o@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).