Loop-level parallelism: Difference between revisions

Content deleted Content added
Ewhorton (talk | contribs)
Ewhorton (talk | contribs)
Line 160:
}
</syntaxhighlight>
The loop has a loop carried dependence <code>S1[i] ->T S1[i + 1]</code> but S2 and S1 do not have a loop-carriedindependent dependence so we can rewrite the code as follows.
<syntaxhighlight>
loop1: for (int i = 1; i < n; i ++) {