Locality principle and its effect on pipelining techniques

  1. How locality principles impact pipelining techniques?


One case I could think of is the instruction cache hit during IF stage. Spatial locality is likely to increase instruction cache hits when there is less flow control. Also when there is flow control, like a loop, temporal locality will increase the hit rate of the instruction cache. If the IF is not succeed due to a cache miss, pipeline has to be stalled, which can be solved by locality principles.