Loop-invariant code motion: Difference between revisions

Content deleted Content added
PrimeBOT (talk | contribs)
m Replace magic links with templates per local RfC - BRFA
Line 7:
 
<source lang="C">
for (int i = 0; i < n; i++i) {
x = y + z;
a[i] = 6 * i + x * x;
Line 18:
x = y + z;
t1 = x * x;
for (int i = 0; i < n; i++i) {
a[i] = 6 * i + t1;
}