public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/35360]  New: Static (base/offset/size rule) should be extended to handle array  elements
@ 2008-02-25  5:20 xinliangli at gmail dot com
  2008-02-25 11:45 ` [Bug middle-end/35360] " rguenth at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: xinliangli at gmail dot com @ 2008-02-25  5:20 UTC (permalink / raw)
  To: gcc-bugs

// David Li
the two references in the loop are not aliased. Not optimized by gcc

struct A{
 int a;
 int b;
};

struct A aa[100];


void foo(int n, int i, int j)
{
  int k = 0;
  for (k = 0; k < n; k++)
  {
      aa[i].a += aa[j].b;
  }
}


-- 
           Summary: Static (base/offset/size rule) should be extended to
                    handle array  elements
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: xinliangli at gmail dot com


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


^ permalink raw reply	[flat|nested] 7+ messages in thread
[parent not found: <bug-35360-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2021-07-26  9:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-25  5:20 [Bug middle-end/35360] New: Static (base/offset/size rule) should be extended to handle array elements xinliangli at gmail dot com
2008-02-25 11:45 ` [Bug middle-end/35360] " rguenth at gcc dot gnu dot org
2008-03-14 21:29 ` rguenth at gcc dot gnu dot org
2009-04-03 12:32 ` rguenth at gcc dot gnu dot org
2009-06-09  2:40 ` pinskia at gcc dot gnu dot org
2010-07-13 10:55 ` steven at gcc dot gnu dot org
     [not found] <bug-35360-4@http.gcc.gnu.org/bugzilla/>
2021-07-26  9:02 ` pinskia at gcc dot gnu.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).