I wonder what programmers at the time would think of CPUs eventually being so good at handling loops that unrolling changes from an optimisation technique to be performed manually, to one that compilers might sometimes do, to an anti-optimisation: http://www.agner.org/optimize/blog/read.php?i=142 It is so important to economize the use of the micro-op cache that I would give the advice never to unroll loops. http://l…
It seems from his comments that the idea of a compiler being able to do it better in some circumstances wasn't completely outlandish.
> Don't try to be smarter than an over-clever C compiler that recognizes loops that implement block move or block clear and compiles them into machine idioms.