This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/19001] New: Loops with power of two step and variable bounds not unrolled
- From: "rakdver at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Dec 2004 00:25:54 -0000
- Subject: [Bug rtl-optimization/19001] New: Loops with power of two step and variable bounds not unrolled
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Loop of the following form
int check(int a,int b, char *c)
{
for(;a<b;a+=4)
if(c[a]==1) return a;
return a;
}
(with step being power of two and > 1, and bounds variable) does not get unrolled.
It may happen that this loop is infinite, but this should not prevent unrolling.
--
Summary: Loops with power of two step and variable bounds not
unrolled
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: normal
Priority: P2
Component: rtl-optimization
AssignedTo: rakdver at gcc dot gnu dot org
ReportedBy: rakdver at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19001