Question: do the branch prediction for the branch in the loop ( i . e . . , the branch that goes from BB 3 to
do the branch prediction for the branch in the loop ie
the branch that goes from BB to either BB or BB as
shown in red lines in Figure based on the algorithm dis
cussed in class shown in Figure and calculate the mis
prediction rate. Assume the branch prediction for the first
two dynamic executions of this branch is always taken.
Execution Trace: Sequence of Basic Blocks Executed
Figure One: CFG
There is a red arrow between blocks and and a red arrow going from
block to
Figure Two: Branch Prediction Algorithm
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
