A note on loop "optimization"

David Feign · ACM SIGPLAN Notices · 1979

The well-known execution-time reduction by moving invariant code out of a loop can be applied to an unconditional jump. Yet, this simple "optimization" is overlooked by most programmers and compiler designers. This paper reveals the overlooked unconditional jump and shows how moving it can not only reduce execution time, but can standardize and simplify the prototype loop.

Read the paper · More papers on PaperTik