opt_vectorize_loops

Controls the use of loop vectorizing optimization.

Syntax

#pragma opt_vectorize_loops on | off | reset

Targets
All platforms.
Remarks

If you enable this pragma, the compiler improves loop performance on compilers that support loop vectorization, like the x86 compiler.

NOTE Do not confuse loop vectorizing with the vector instructions supported by some chips, like MMX/SSE on x86. For x86, processor-specific instructions and vector instruction sets must be enabled as well.

Only the x86 CodeGen settings panel has the Autovectorize loops option, it is not available as an option setting in any other panel.

To check this setting, use __option (opt_vectorize_loops), described in Checking Settings. The default setting is off.