SPRU514Z July 2001 – October 2023 SM320F28335-EP
The compiler evaluates loop conditionals at the bottom of loops, saving an extra branch out of the loop. In many cases, the initial entry conditional check and the branch are optimized out.
This type of optimization is enabled by the --opt_level=0 and higher optimization settings.