Re: vectorization, scheduling and aliasing

2010-04-27 Thread roy rosen
Hi, I have looked a bit more and tried also ia-64 and bfin and actually I can't find a single example where vectorized code using __restrict__ variables would break the dependency between stores and loads. for this simple program: unsigned short xxx(unsigned short* __restrict__ a, unsigned short

Re: vectorization, scheduling and aliasing

2010-04-26 Thread Richard Guenther
On Mon, Apr 26, 2010 at 3:42 PM, roy rosen wrote: > Hi Richard, > > Here is the relevant block from the dump: > > : >  __vect_var__26_6 = *__vect_p_14_19; >  *__vect_p_18_25 = __vect_var__26_6; >  # PT = nonlocal { __PARM_RESTRICT_2 } (restr) >  __vect_p_22_11 = __vect_p_14_19 + 8; >  # PT = nonlo

Re: vectorization, scheduling and aliasing

2010-04-26 Thread roy rosen
Hi Richard, Here is the relevant block from the dump: : __vect_var__26_6 = *__vect_p_14_19; *__vect_p_18_25 = __vect_var__26_6; # PT = nonlocal { __PARM_RESTRICT_2 } (restr) __vect_p_22_11 = __vect_p_14_19 + 8; # PT = nonlocal { __PARM_RESTRICT_1 } (restr) __vect_p_27_12 = __vect_p_18

Re: vectorization, scheduling and aliasing

2010-04-26 Thread Richard Guenther
On Mon, Apr 26, 2010 at 9:43 AM, roy rosen wrote: > Hi Richard, > > 2010/4/23, Richard Guenther : >> On Thu, Apr 22, 2010 at 6:04 PM, roy rosen wrote: >> > Hi Richard, >> > >> > 2010/4/14, Richard Guenther : >> >> On Wed, Apr 14, 2010 at 8:48 AM, roy rosen wrote: >> >> > Hi All, >> >> > >> >> >

Re: vectorization, scheduling and aliasing

2010-04-26 Thread roy rosen
Hi Richard, 2010/4/23, Richard Guenther : > On Thu, Apr 22, 2010 at 6:04 PM, roy rosen wrote: > > Hi Richard, > > > > 2010/4/14, Richard Guenther : > >> On Wed, Apr 14, 2010 at 8:48 AM, roy rosen wrote: > >> > Hi All, > >> > > >> > I have implemented some vectorization features in my gcc port. >

Re: vectorization, scheduling and aliasing

2010-04-23 Thread Richard Guenther
On Thu, Apr 22, 2010 at 6:04 PM, roy rosen wrote: > Hi Richard, > > 2010/4/14, Richard Guenther : >> On Wed, Apr 14, 2010 at 8:48 AM, roy rosen wrote: >> > Hi All, >> > >> > I have implemented some vectorization features in my gcc port. >> > >> > In the generated code for this function I can see

Re: vectorization, scheduling and aliasing

2010-04-22 Thread roy rosen
Hi Richard, 2010/4/14, Richard Guenther : > On Wed, Apr 14, 2010 at 8:48 AM, roy rosen wrote: > > Hi All, > > > > I have implemented some vectorization features in my gcc port. > > > > In the generated code for this function I can see a scheduling problem: > > > > int xxx(int* __restrict__ a, int

Re: vectorization, scheduling and aliasing

2010-04-14 Thread Richard Guenther
On Wed, Apr 14, 2010 at 8:48 AM, roy rosen wrote: > Hi All, > > I have implemented some vectorization features in my gcc port. > > In the generated code for this function I can see a scheduling problem: > > int xxx(int* __restrict__ a, int* __restrict__ b) > { >    int __restrict__ i; >    for (i