5.7.7.11 Auto-indexing Option

The -mauto-indexing option performs substitution of a load-then-increment sequence of instructions with a single load-with-pre-increment instruction when in the Thumb-2 ISA mode on Cortex-M devices. This optimization heuristic is automatically enabled at optimization levels -O2 and -O3.

The -mno-auto-indexing form of this option disables the optimization.