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/19624] PRE pessimizes ivopts


------- Additional Comments From rguenth at tat dot physik dot uni-tuebingen dot de  2005-01-25 14:52 -------
Oh, in principle this should compile to roughly the same as

void c_test(double *a, double *b, int ei, int ej, int stridea, int strideb)
{
  for (int j=0; j<ej; ++j)
    for (int i=0; i<ei; ++i)
      a[i+j*stridea] = 0.5*(b[i+1+j*strideb] + b[i+(j+1)*strideb]);
}

... in principle (for the above -fno-tree-pre helps, too).

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19624


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