public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/55334] mgrid regression (ipa-cp disables vectorization)
Date: Fri, 16 Nov 2012 13:29:00 -0000	[thread overview]
Message-ID: <bug-55334-4-PZxhkrWxq8@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-55334-4@http.gcc.gnu.org/bugzilla/>


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

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-11-16 13:29:05 UTC ---
Ah, on the #c5 testcase the problem seems to be const float * vs. float *,

  /* If the references do not access the same object, we do not know
     whether they alias or not.  */
  if (!operand_equal_p (DR_BASE_OBJECT (a), DR_BASE_OBJECT (b), 0))
    {
      DDR_ARE_DEPENDENT (res) = chrec_dont_know;
      return res;
    }

operand_equal_p here fails because, while both base objects are MEM_REFs and
operand_equal_p (TREE_OPERAND (DR_BASE_OBJECT (a), 0), TREE_OPERAND
(DR_BASE_OBJECT (b), 0), 0) is true, the second operand of one MEM_REF is
const float *, while on the other MEM_REF it is float *, and operand_equal_p
for that tests:
...
2570  && (TYPE_MAIN_VARIANT (TREE_TYPE (TREE_OPERAND (arg0, 1)))
2571      == TYPE_MAIN_VARIANT (TREE_TYPE (TREE_OPERAND (arg1, 1))))
2572  && OP_SAME (0) && OP_SAME (1));
and the TYPE_MAIN_VARIANT check fails.  In this case I believe we don't care
whether it points to const float or float.  Not sure if we should change
operand_equal_p to try harder if TYPE_MAIN_VARIANT of the two types isn't
equal,
but TYPE_MAIN_VARIANT (TREE_TYPE (TREE_TYPE (TREE_OPERAND (argX, 1))))
is equal, and both pointers have the same deref alias set, or perhaps just
change the above spot to try harder on MEM_REFs if it failed.


  parent reply	other threads:[~2012-11-16 13:29 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-15  2:27 [Bug tree-optimization/55334] New: " hubicka at gcc dot gnu.org
2012-11-15  7:11 ` [Bug tree-optimization/55334] " vincenzo.innocente at cern dot ch
2012-11-15 11:07 ` hubicka at gcc dot gnu.org
2012-11-15 11:42 ` hubicka at gcc dot gnu.org
2012-11-16 10:39 ` hubicka at gcc dot gnu.org
2012-11-16 10:56 ` vincenzo.innocente at cern dot ch
2012-11-16 12:06 ` jakub at gcc dot gnu.org
2012-11-16 13:20 ` hubicka at gcc dot gnu.org
2012-11-16 13:22 ` hubicka at gcc dot gnu.org
2012-11-16 13:29 ` jakub at gcc dot gnu.org [this message]
2012-11-16 13:46 ` vincenzo.innocente at cern dot ch
2012-11-16 13:56 ` jakub at gcc dot gnu.org
2012-11-16 13:59 ` vincenzo.innocente at cern dot ch
2012-11-16 14:17 ` jakub at gcc dot gnu.org
2012-11-16 14:45 ` [Bug tree-optimization/55334] [4.8 Regression] " jakub at gcc dot gnu.org
2012-12-07 10:12 ` rguenth at gcc dot gnu.org
2012-12-10 15:34 ` rguenth at gcc dot gnu.org
2012-12-21 12:26 ` rguenth at gcc dot gnu.org
2012-12-21 13:49 ` hubicka at ucw dot cz
2012-12-21 14:02 ` rguenth at gcc dot gnu.org
2012-12-21 14:09 ` rguenth at gcc dot gnu.org
2012-12-21 14:10 ` jakub at gcc dot gnu.org
2012-12-21 14:12 ` rguenth at gcc dot gnu.org
2012-12-21 14:22 ` hubicka at ucw dot cz
2012-12-21 14:27 ` rguenth at gcc dot gnu.org
2013-02-12 20:11 ` jamborm at gcc dot gnu.org
2013-02-13  9:09 ` rguenth at gcc dot gnu.org
2013-02-19 12:55 ` jamborm at gcc dot gnu.org
2013-02-19 13:50 ` rguenther at suse dot de
2013-02-20 11:13 ` jamborm at gcc dot gnu.org
2013-02-20 12:57 ` jamborm at gcc dot gnu.org
2013-02-20 14:08 ` [Bug tree-optimization/55334] [4.8/4.9 " rguenth at gcc dot gnu.org
2013-03-28 12:36 ` jamborm at gcc dot gnu.org
2013-07-10 23:54 ` chris_s_jones at yahoo dot com
2013-07-24 15:47 ` jamborm at gcc dot gnu.org
2013-07-25 16:33 ` hubicka at ucw dot cz
2014-04-22 11:38 ` [Bug tree-optimization/55334] [4.8/4.9/4.10 " jakub at gcc dot gnu.org
2014-07-16 13:30 ` jakub at gcc dot gnu.org
2014-09-02 15:45 ` [Bug tree-optimization/55334] [4.8/4.9/5 " vp at gcc dot gnu.org
2014-09-03 10:04 ` jamborm at gcc dot gnu.org
2014-09-03 10:25 ` rguenther at suse dot de
2014-09-03 14:11 ` rguenth at gcc dot gnu.org
2014-09-05 12:41 ` rguenth at gcc dot gnu.org
2014-10-30 10:43 ` jakub at gcc dot gnu.org
2014-11-24  9:25 ` rguenth at gcc dot gnu.org
2014-11-24  9:25 ` rguenth at gcc dot gnu.org
2014-11-24  9:25 ` [Bug tree-optimization/55334] [4.8/4.9 " rguenth at gcc dot gnu.org
2015-02-16 11:26 ` andrew.n.senkevich at gmail dot com
2015-02-16 11:29 ` jakub at gcc dot gnu.org
2015-02-16 12:17 ` rguenther at suse dot de
2015-06-26 20:01 ` [Bug tree-optimization/55334] [4.9 " jakub at gcc dot gnu.org
2015-06-26 20:31 ` jakub 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-55334-4-PZxhkrWxq8@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).