This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/19001] [3.4/4.0 Regression] Loops with power of two step and variable bounds not unrolled
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Dec 2004 10:20:47 -0000
- Subject: [Bug rtl-optimization/19001] [3.4/4.0 Regression] Loops with power of two step and variable bounds not unrolled
- References: <20041215002551.19001.rakdver@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pcarlini at suse dot de 2004-12-15 10:20 -------
To Zdenek and Andrew it's obvious, but maybe it's worth mentioning that the
following kind of loop, not involving explicitly power of two steps, pointers
instead, and *very* simple, is also not unrolled anymore:
int*
check(int* a, int* b)
{
for (; a < b; ++a)
if (*a == 1)
return a;
return a;
}
Maybe the Summary could be made a tad clearer
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |pcarlini at suse dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19001