Hello bearophile,

Andrei Alexandrescu:

I know, but at about the fiftienth one you get sick of it.

In some situations static loops can be useful, but in general isn't
the compiler supposed to be able to perform loop unrolling by itself,
according to compilation arguments and according to how much code is
present into the loop? (if it's too much code then loop unrolling is
to be avoided).

Bye,
bearophile

It's not just loop unrolling as some loops can't be "rolled" in the first place, like when one of the loop variables is a type or you need to static if on the index.


Reply via email to