Re: [AD] Remove -fno-strength-reduce |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Eric Botcazou wrote:
> Yes, that's the point of strength reduction: general induction variables (iv
> with multiplier) are reduced to basic induction variables (iv without
> multiplier) and the bound calculations are hoisted out of the loop. Then
> you can eliminate the original biv and iterate on the giv instead.
So if I understood correctly, all you have left is basically
const int N;
const int offset;
const int base;
int i;
for ( i = base ; i < N ; i += offset )
{
*((int *)i) = value;
}
right?
Hein Zelle
>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<
Unix is user friendly. It's just very particular about who
it's friends are.
Hein Zelle hein@xxxxxxxxxx
http://www.icce.rug.nl/~hein
>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<