Docsity

Detecting & Enhancing Loop Parallelism: Classifying Dependences & Eliminating Computations, Slides of Advanced Computer Architecture

Partial preview of the text

Download Detecting & Enhancing Loop Parallelism: Classifying Dependences & Eliminating Computations and more Slides Advanced Computer Architecture in PDF only on Docsity!

Classifying Dependences

In addition to detecting the presence of a dependence, a compiler wants to classify the type of dependence That is, the compiler recognize name dependence and eliminate them at compile time by renaming and copying

Enhancing ILP To achieve more ILP, compliers can reduce the impact of dependent computations The key technique for this is to eliminate or reduce dependent computations by back substitution

summary

Following this we discussed techniques to eliminate dependent computation These techniques are employed in compiler based scheduling

Asslam-u-aLacum

and

ALLAH Hafiz

The following slides may be

included as Assignment

Detecting and enhancing loop level parallelism In this example, dependence information is inexact, as it tells that such a dependence occur.

Detecting and enhancing loop

level parallelism

Now consider one more example, for ( i=1; i<=100; i=i+1) { A[i] = B[i] + C[i]; D[i] = A[i] * E[i]; }

Detecting and enhancing loop

level parallelism

In general, data dependence analysis tells that one reference may depends on another. But a complex analysis requires to determine that two reference must be to the exact same address.

Detecting and enhancing loop

level parallelism

In this example a simple version of this analysis suffices. As the two references are on the same basic block.

Detecting and enhancing loop

level parallelism

Recurrence exists, when the variable is defined based on the value of that variable in the earlier iteration. Recurrence detection is important for two reasons.

Detecting and enhancing loop

level parallelism

  1. some architectures have special support for executing recurrences.
  2. some recurrence can be the source of a reasonable amount of parallelism.

Detecting and enhancing loop

level parallelism

Here in ith iteration, the loop reference element is i-5. This loop have a dependence distance of 5. Loop carried dependences have a data dependence of 1.