Question: Problem 3: Loop Unrolling (20 points) List all the dependencies (true, anti, output-i.e., RAW, WAR, WAW) in the following code fragment (which has three statements
Problem 3: Loop Unrolling (20 points) List all the dependencies (true, anti, output-i.e., RAW, WAR, WAW) in the following code fragment (which has three statements in the loop body). Indicate whether the true dependencies are loop carried or not. Can this loop, as written, be unrolled? Explain. Is there any manner in which you can rewrite the code so that the loop unrolling can be applied to the rewritten code? (You have to explain your answer- no credit will be given for simple Yes or No answer.) for (i-l ; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
