Loop Unrolling

Back to Optimization

Replicating the body of a loop multiple times to reduce loop overhead (branch instructions and counter updates) and increase instruction-level parallelism. The tradeoff is increased code size for improved execution speed on tight loops.

language-implementation optimization loop-unrolling