Professional Documents
Culture Documents
Dependence
Theorem: Loop Dependence
“Meaning” of a program:
• Two computations are equivalent if, on the same inputs
they produce the same outputs in the same order.
• Of course the performance of the program may change!
Re-Ordering
Transformations
• A reordering transformation is any
transformation that merely program
changes of the code, without adding orthe
execution deleting
orderany
of
executions of any statements.
• S2 depends on S1:
– Statement S1 on iteration i is the source of the
dependence
– Statement S2 on iteration j is the sink of the dependence