This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/29751] not optimizing access a[0] , a[1]
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Nov 2006 01:06:00 -0000
- Subject: [Bug tree-optimization/29751] not optimizing access a[0] , a[1]
- References: <bug-29751-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-11-14 01:06 -------
This is a problem of our VOPs not having base+offset and has nothing to do with
restrict.
int f(int *r)
{
r[0] = 0;
r[1] = 0;
if(r[0]) foo();
}
is enough to reproduce the issue. Also I think there might be a couple dups of
this with respect of structs instead.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Missed optimization of |not optimizing access a[0] ,
|restrict pointer assigned |a[1]
|value |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29751