Next: Types of dependence
Up: Dependence
Previous: Loop-carried dependences...cont'd
The dependence equation
- A dependence occurs between two statements Sp and Sq (not
necessarily distinct), when there exists a pair of loop iterations
I1 and I2, such that a memory reference in SpI1 may refer
to the same location as memory reference in SqI2.
- This might occur if Sp and Sq refer to some common array A
- Suppose Sp refers to A[
]
- Suppose Sq refers to A[
]
- A dependence of some kind occurs between Sp and Sq if there
exists a solution to the equation
for integer values of I1 and I2 lying within the loop
bounds