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

Reply via email to