This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/13761] [tree-ssa] component refs to the same struct should not alias
- From: "dalej at apple dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 May 2004 19:56:49 -0000
- Subject: [Bug tree-optimization/13761] [tree-ssa] component refs to the same struct should not alias
- References: <20040120070316.13761.dann@godzilla.ics.uci.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From dalej at apple dot com 2004-05-17 19:56 -------
Here's another example (for lno). The two inner loops should have identical code.
int x; int y;
struct { int x; int y; } global;
int foo() {
int i;
for ( i=0; i<10; i++)
y += x*x;
for ( i=0; i<10; i++)
global.y += global.x*global.x;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13761