Data dependency: Difference between revisions

Content deleted Content added
Merged content from Hazard (computer architecture) to here.
Rraimii (talk | contribs)
For clarity, added reminder that the RAW dependency cannot be removed.
 
(One intermediate revision by the same user not shown)
Line 99:
3. B = 7
 
A new variable, B2, has been declared as a copy of B in a new instruction, instruction N. The anti-dependency between 2 and 3 has been removed, meaning that these instructions may now be executed in parallel. However,

Note thethat modificationthere hasis introducedstill a newread-after-write dependency: instruction 2 is now truly dependent on instruction N, which is truly dependent upon instruction 1. AsThis flowdependency dependenciesexisted in the original version, thesewhere newinstruction dependencies2 arewas truly dependent on instruction 1. This dependency impossiblecannot tobe safely removeremoved.<ref name="architecture"/>
 
=== Output dependency (write-after-write) ===