Loop-invariant code motion: Difference between revisions

Content deleted Content added
MathsPoetry (talk | contribs)
if this is really C code, we're likely to want to initialize a[0] :-)
MathsPoetry (talk | contribs)
for consistency
Line 7:
 
<source lang="C">
for (int i = 0; i < n; i++) {
x = y + z;
a[i] = 6 * i + x * x;