Next: Definition:
Up: Dependence
Previous: ...
What is a loop-carried dependence?
- Consider two iterations I1 and I2
- A dependence occurs between two statements Sp and Sq (not necessarily
distinct), when an assignment in SpI1 refers to the same location as a use in SqI2
- In the example,
- The assignment is ``A[I1] := ...''
- The use is ``... := A[I2-1] ...''
- These refer to the same location when
I1 = I2-1
- Thus I1 < I2, ie the assignment is in an earlier
iteration
- Notation:
