[Bug rtl-optimization/19001] [3.4/4.0 Regression] Loops with power of two step and variable bounds not unrolled
pcarlini at suse dot de
gcc-bugzilla@gcc.gnu.org
Wed Dec 15 10:20:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list