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/25881] unsigned int loop indices don't optimize as good as int or __SIZE_TYPE__ for 64bit targets



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-01-20 20:43 -------
Confirmed, I thought I had saw another bug about this but no luck,  anyways
confirmed.

Hmm, using unsigned short on 32bit targets cause the same issue:
void vector_add(unsigned short n,
                double * __restrict__ r,
                double * __restrict__ a,
                double * __restrict__ b) {
  unsigned short i;
  for(i=0; i<n; i++) {
    r[i] = a[i] + b[i];
  }
}

There more likely other issues like this too.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |missed-optimization
   Last reconfirmed|0000-00-00 00:00:00         |2006-01-20 20:43:27
               date|                            |


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


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