public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/34172]  New: Missed store ccp optimization
@ 2007-11-21 11:26 eres at il dot ibm dot com
  2007-11-21 12:04 ` [Bug tree-optimization/34172] " rguenth at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: eres at il dot ibm dot com @ 2007-11-21 11:26 UTC (permalink / raw)
  To: gcc-bugs

#define N 256

struct
{
  int x;
  int y;
} S[100];

int z[100];

int
foo (int y)
{
  int x;

  S[5].x = 4;
  S[5].y = 0;

  x = S[5].x;

  return (x);
}

On powerpc64-linux, r130275 with -O2 we get:
(taken from .store_ccp dump file)

foo (y)
{
  int x;

<bb 2>:
  S[5].x = 4;
  S[5].y = 0;
  x_1 = S[5].x;
  return x_1;

}

[A patch was submitted
(http://gcc.gnu.org/ml/gcc-patches/2007-06/msg01901.html) which is no longer
relevant because of -http://gcc.gnu.org/ml/gcc-patches/2007-08/msg01370.html.]


-- 
           Summary: Missed store ccp optimization
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: eres at il dot ibm dot com


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-03-14 17:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-21 11:26 [Bug tree-optimization/34172] New: Missed store ccp optimization eres at il dot ibm dot com
2007-11-21 12:04 ` [Bug tree-optimization/34172] " rguenth at gcc dot gnu dot org
2007-11-21 12:05 ` rguenth at gcc dot gnu dot org
2007-11-30 10:25 ` rguenth at gcc dot gnu dot org
2008-03-14 17:07 ` rguenth at gcc dot gnu dot org
2008-03-14 17:26 ` rguenth at gcc dot gnu dot org

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).