This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/25881] unsigned int loop indices don't optimize as good as int or __SIZE_TYPE__ for 64bit targets
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Jan 2006 20:43:27 -0000
- Subject: [Bug tree-optimization/25881] unsigned int loop indices don't optimize as good as int or __SIZE_TYPE__ for 64bit targets
- References: <bug-25881-11859@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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