This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/38856] loop iv detection failure
- 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: 16 Jan 2009 18:53:45 -0000
- Subject: [Bug middle-end/38856] loop iv detection failure
- References: <bug-38856-17190@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from pinskia at gcc dot gnu dot org 2009-01-16 18:53 -------
Here is a testcase where IV can be found but we end up with two copies of the
same register in the loop:
int f(unsigned long s, unsigned long *c)
{
long j;
for(j = 0;j < s; j++)
{
c[j]=j;
}
}
Which is basically the same issue.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38856