[Bug middle-end/35360] New: Static (base/offset/size rule) should be extended to handle array elements
xinliangli at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Feb 25 05:20:00 GMT 2008
// 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
More information about the Gcc-bugs
mailing list