Data dependency: Difference between revisions

Content deleted Content added
m fix pseudocode by adding "done" for outermost loop
Line 41:
2. A = B + 1
3. B = 7
 
Example :
MUL R3,R1,R2
ADD R2,R5,R6
 
It is clear that there is anti-dependence between these 2 instructions.At first we read R2 then in second instruction we are Writing a new
value for it.
 
An anti-dependency is an example of a ''name dependency''. That is, renaming of variables could remove the dependency, as in the next example: