This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/29751] not optimizing access a[0] , a[1]



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]