
16 Nov
2012
16 Nov
'12
6:20 p.m.
Nevin Liber wrote:
Now we are getting somewhere. Actual experience. Could you elaborate on the compilers and constructs that need to be hand optimized into equivalent code because the optimizers aren't doing it themselves?
Compilers are, in my experience, better at optimizing i < n loops than they are at optimizing i != end loops. They are better at constant-folding the n, too, which then helps with eventual unrolls. But why are we having this discussion at all? These are private members of the class; the author can do whatever he likes.