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/24689] operand_equal_p does not return true for some equivalent ARRAY_REF
Date: Thu, 12 Apr 2007 09:16:00 -0000	[thread overview]
Message-ID: <20070412091612.30131.qmail@sourceware.org> (raw)
In-Reply-To: <bug-24689-5009@http.gcc.gnu.org/bugzilla/>



------- Comment #10 from rguenth at gcc dot gnu dot org  2007-04-12 10:16 -------
Subject: Bug 24689

Author: rguenth
Date: Thu Apr 12 10:15:53 2007
New Revision: 123736

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

        PR tree-optimization/24689
        PR tree-optimization/31307
        * fold-const.c (operand_equal_p): Compare INTEGER_CST array
        indices by value.
        * gimplify.c (canonicalize_addr_expr): To be consistent with
        gimplify_compound_lval only set operands two and three of
        ARRAY_REFs if they are not gimple_min_invariant.  This makes
        it never at this place.
        * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.

        * g++.dg/tree-ssa/pr31307.C: New testcase.
        * gcc.dg/tree-ssa/pr24689.c: Likewise.

Added:
    trunk/gcc/testsuite/g++.dg/tree-ssa/pr31307.C
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr24689.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/gimplify.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-ccp.c


-- 


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


  parent reply	other threads:[~2007-04-12  9:16 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-06  2:26 [Bug tree-optimization/24689] New: store_ccp is missing an opportunity!? kazu at gcc dot gnu dot org
2005-11-06  4:34 ` [Bug tree-optimization/24689] store_ccp is missing an opportunity because of call clobber/alias load? pinskia at gcc dot gnu dot org
2005-11-06  4:47 ` pinskia at gcc dot gnu dot org
2005-11-06  4:50 ` [Bug tree-optimization/24689] store_ccp does nothing for array references pinskia at gcc dot gnu dot org
2005-11-06  4:53 ` pinskia at gcc dot gnu dot org
2006-01-15 21:35 ` pinskia at gcc dot gnu dot org
2006-01-16  6:02 ` [Bug tree-optimization/24689] operand_equal_p does not return true for some equivalent ARRAY_REF pinskia at gcc dot gnu dot org
2007-04-11 10:13 ` rguenth at gcc dot gnu dot org
2007-04-11 12:03 ` pinskia at gcc dot gnu dot org
2007-04-11 13:51 ` rguenth at gcc dot gnu dot org
2007-04-12  9:16 ` rguenth at gcc dot gnu dot org [this message]
2007-04-12  9:28 ` 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=20070412091612.30131.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).