Please analyze the hazards in the assembly code which may cause the pipeline to stall, assuming all the instructions and data
are in the instruction and data caches and do not cause stalls in the IF and MEM stages.
申論題內容
(d) [5 points] To improve the pipeline performance in the previous question, we would like to reduce the impact of control
hazards by adding branch prediction to the processor pipeline. Please describe how this can be done and how it affects the
performance.