Minimizes comparisions for "if" and "switch" statements.
#pragma switch_op on | off
When this pragma is on, the comparisions for "if" and "switch" statements are minimized. The compiler performs this optimization by using the constants specified within the switch case (or if) statements and based on internal heuristics that determine the cost.
By default, this pragma is off. The compiler turns this optimization on implicitly when the optimization level is equal to or greater than 2 and the user specifies #pragma switch_op on. For example, these pragma settings will also turn on switch optimization:
#pragma optimization_level 2
#pragma switch_op on