5.7.7.36 Peel-loops Option

The -fpeel-loops option peels loops in the source code, which involves reconfiguring the loop where possible so that a number of the early iterations are excluded from the loop and are executed explicitly before the loop starts. Doing so might mean that the remaining loop body can be executed more efficiently. This option also turns on complete loop peeling (i.e. complete removal of loops that will execute a small, constant number of iterations). This option is automatically enabled when selecting level -O3 optimizations.

The -fno-peel-loops form of this option does not perform loop peeling. This is the default action if this option is not specified and level -O3 optimizations have not been selected.