SPRU514AA July 2001 – March 2026 SM320F28335-EP
This optimization identifies expressions within loops that always compute to the same value. The computation is moved in front of the loop, and each occurrence of the expression in the loop is replaced by a reference to the precomputed value.
This type of optimization is enabled by the --opt_level=2 and higher optimization settings. This optimization can improve performance, but results in increased code size and reduced debuggability.