Loop-invariant code motion: Difference between revisions

Content deleted Content added
No edit summary
m Fixed markup for code fragments.
Line 9:
}</pre></code>
 
The calculation of <precode>maximum - 1</precode> and <precode>(4+array[k])*pi+5</precode> can be moved outside the loop, and precalculated, resulting in something similar to:
 
<code><pre>