opt_loop_invariants

Controls the use of loop invariant optimization.

Syntax
  #pragma opt_loop_invariants on | off | reset  
Remarks

If you enable this pragma, the compiler moves all computations that do not change inside a loop outside the loop, which then runs faster.

This pragma does not correspond to any panel setting in the Language panel. To check this setting, use __option (opt_loop_invariants), described in Checking Pragma Settings. By default, this pragma is disabled.