opt_dead_assignments

Controls the use of dead store optimization.

Syntax

#pragma opt_dead_assignments on | off | reset

Targets
All platforms.
Remarks

If you enable this pragma, the compiler removes assignments to unused variables before reassigning them.

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