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/55334] mgrid regression (ipa-cp disables vectorization)


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

--- Comment #12 from vincenzo Innocente <vincenzo.innocente at cern dot ch> 2012-11-16 13:58:33 UTC ---
so a "better" c case is 
float * mem;
void sumN(int n) {
  float * a=mem;
  /*const*/ float * b=mem+n;
  /*const*/ float * c=mem+2*n;
  for (int i=0;i!=n;++i)
    a[i]=b[i]+c[i];
}


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