Question: 4. Draw the data dependence graph for the following piece of code. Don't forget to label the dependence edges with their latency. R1 = LOAD(A)

 4. Draw the data dependence graph for the following piece of

4. Draw the data dependence graph for the following piece of code. Don't forget to label the dependence edges with their latency. R1 = LOAD(A) R2 = LOAD (B) R3 = LOAD (C) R4 = R2 R1 R5 = R4 * R1 R6 = R1 + R2 R7 = R4 + R6 R8 - R5 R6 R10 - R3 * R9 D = STORE (R10) 5. What are the "heights" of the instructions in the DDG? 6. Give a schedule for the program, using height-based list scheduling. If there is a tie in heights, break the tie by scheduling the instruction that is earlier in the program order

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!