access_errors

### opt_common_subs

Controls the use of common subexpression optimization.

##### Syntax

#pragma opt_common_subs on | off | reset

##### Targets

All platforms.

##### Remarks

If you enable this pragma, the compiler replaces similar redundant expressions with a single expression. For example, if two statements in a function both use the expression

a * b * c + 10

the compiler generates object code that computes the expression only once and applies the resulting value to both statements.

The compiler applies this optimization to its own internal representation of the object code it produces.

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