opt_strength_reduction

Controls the use of strength reduction optimization.

Syntax

#pragma opt_strength_reduction on | off | reset

Targets
All platforms.
Remarks

If you enable this pragma, the compiler replaces array element arithmetic instructions with pointer arithmetic instructions to make loops faster.

This pragma does not correspond to any panel setting. To check this setting, use __option (opt_strength_reduction), described in Checking Settings. This settings is related to the “global_optimizer” level.